Re: Phantom sysctl

2010-11-15 Thread mdf
On Mon, Nov 15, 2010 at 9:53 AM, Garrett Cooper wrote: >    According to SYSCTL_INT(9): > >     The SYSCTL kernel interfaces allow code to statically declare sysctl(8) >     MIB entries, which will be initialized when the kernel module containing >     the declaration is initialized.  When the mod

FreeBSD development on Mac OS

2010-11-21 Thread mdf
(Taking to -hackers by request) My old (Ubuntu) laptop died and I have replaced it with a Macbook Air. I know from visual inspection at BSDCan that 50% of the attending developers own a Mac laptop of some kind. However, I've been a bit stumped on how to share the source code from my Mac with the

Re: FreeBSD development on Mac OS

2010-11-21 Thread mdf
g on various ports. Even with the firewall off I get the same "Client credential too weak" error. I get the same error when I change /etc/exports on the Mac and /etc/fstab on the FreeBSD VM to /Users/mdf. So... I'm pretty stumped. Thanks, matthew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: FreeBSD development on Mac OS

2010-11-21 Thread mdf
r/log; > a grep for mountd in /var/log/*.log only has hits in > launchd-shutdown.log.  A grep for nfsd in /var/log/*.log doesn't > *seem* to have anything useful, just a few in appfirewall.log about > nfsd listening on various ports. > > Even with the firewall off I get the same "

coretemp(4)/amdtemp(4) and sysctl nodes

2010-12-03 Thread mdf
There are very few uses in FreeBSD mainline code of sysctl_remove_oid(), and I was looking at potentially removing them. However, the use in coretemp/amdtemp has me slightly stumped. Each device provides a device_get_sysctl_ctx sysctl_ctx that is automatically cleaned up when the device goes away.

Include file search path

2011-03-29 Thread mdf
I thought I knew something about how the compiler looks for include files, but now I think maybe I don't know much. :-) So here's what I'm pondering. When I build a library, like e.g. libc, where do the include files get pulled from? They can't (shouldn't) be the ones in /usr/include, but I don'

Re: Does FreeBSD have replacement for posix_fadvice() or fcntl(F_RDADVISE)?

2011-05-12 Thread mdf
ARWIN ones fcntl(F_RDADVISE)? >> >>    It is like madvise(2) but for file descriptors. > No, it does not (and I think the function is spelled posix_fadvise()). > > mdf reserved the syscall slot for posix_fadvise in his recent work > on posix_fallocate(). Might be, he could comme

Re: Does FreeBSD have replacement for posix_fadvice() or fcntl(F_RDADVISE)?

2011-05-12 Thread mdf
2011/5/12 Lev Serebryakov : > Hello, Mdf. > You wrote 12 мая 2011 г., 15:40:25: > >>>>    Does FreeBSD have some custom call, which can be used where Linux >>>>  programs uses posix_fadvice() and DARWIN ones fcntl(F_RDADVISE)? >>>> >>>>    I

sizeof(function pointer)

2011-05-31 Thread mdf
I am looking into potentially MFC'ing r212367 and related, that adds drains to sbufs. The reason for MFC is that several pieces of new code in CURRENT are using the drain functionality and it would make MFCing those changes much easier. The problem is that r212367 added a pointer to a drain funct

Re: int64_t and printf

2011-06-05 Thread mdf
On Sun, Jun 5, 2011 at 11:13 AM, Ben Laurie wrote: > So, for example int64_t has no printf modifier I am aware of. Likewise > its many friends. The worse option is to use the C99 defines, like PRI64 and PRI64U. The better option is to use %jd / %ju and cast the value to [u]intmax_t. Cheers, matt

Check for 0 ino_t in readdir(3)

2011-06-07 Thread mdf
There is a check in the function implementing readdir(3) for a zero inode number: struct dirent * _readdir_unlocked(dirp, skip) DIR *dirp; int skip; { /* ... */ if (dp->d_ino == 0 && skip) continue; /* ... */ } "skip" is 1 ex

Re: Unit Tests for FreeBSD Kernel APIs?

2011-06-24 Thread mdf
On Fri, Jun 24, 2011 at 6:14 AM, John Baldwin wrote: > On Friday, June 24, 2011 3:23:11 am Sebastian Huber wrote: >> Hello, >> >> exists there some unit tests for FreeBSD kernel APIs, e.g. mutex(9), >> condvar(9), etc.? >> >> Have a nice day! > > Hmm, I have a kernel module that does some tests, b

Re: [PATCH] __FreeBSD_cc_version in

2011-07-05 Thread mdf
On Tue, Jul 5, 2011 at 6:36 AM, Robert Millan wrote: > 2011/7/5 Dimitry Andric : >> As far as I can see, this code only gives warnings when compiled with >> gcc 4.5 or higher, and when using the -Wundef flag.  Isn't it easier to >> just remove the -Wundef flag here? > > Here's a patch to remove -W

Re: [PATCH] sysctl cleanup - unifying sysctls: vm.kvm_size and vm.kvm_free

2011-07-18 Thread mdf
On Mon, Jul 18, 2011 at 5:32 AM, Uffe Jakobsen wrote: > Please consider this patch - it unifies sysctls: vm.kvm_size and > vm.kvm_free. > > Currently these sysctls are only found under i386 and amd64: > > sys/i386/i386/pmap.c > sys/i386/xen/pmap.c > sys/amd64/amd64/pmap.c > > It seems logical (to

Re: [PATCH] sysctl cleanup - unifying sysctls: vm.kvm_size and vm.kvm_free

2011-07-18 Thread mdf
On Mon, Jul 18, 2011 at 7:47 AM, Uffe Jakobsen wrote: > On 2011-07-18 15:54, m...@freebsd.org wrote: >> On Mon, Jul 18, 2011 at 5:32 AM, Uffe Jakobsen  wrote: >>> >>> Please consider this patch - it unifies sysctls: vm.kvm_size and >>> vm.kvm_free. >>> >>> Currently these sysctls are only found un

Re: Large machine test ideas

2011-08-29 Thread mdf
On Mon, Aug 29, 2011 at 7:46 AM, Ivan Voras wrote: > On 26/08/2011 19:44, Garrett Cooper wrote: >> On Fri, Aug 26, 2011 at 10:36 AM, Ivan Voras wrote: >> >> ... >> >>> I think that I'll need a 9-CURRENT snapshot on it to run all 128 CPUs, >>> right? >> >> A 9.0-BETA1 snapshot, yes. > > Well, I'll

Re: Understanding panic and exit in the kernel

2011-09-07 Thread mdf
On Wed, Sep 7, 2011 at 11:08 AM, Charlie Martin wrote: > I'm still pursuing a FreeBSD bug in "7.2-PRERELEASE FreeBSD" -- and yes, we > know this is wildly out of date, but it's not feasible to upgrade right now > -- and while trying to backport a fix suggested here > http://permalink.gmane.org/gma

Re: Understanding panic and exit in the kernel

2011-09-07 Thread mdf
On Wed, Sep 7, 2011 at 12:24 PM, Charlie Martin wrote: > > > On 2011-09-07 12:53, m...@freebsd.org wrote: >>> >>> For my immediate purposes, I'd be happy with any way in which I could >>> >  brutally kill the kernel and force it to the debugger, say by >>> > replacing the >>> >  panic call with a

Re: Memory allocation in kernel -- what to use in which situation? What is the best for page-sized allocations?

2011-10-02 Thread mdf
2011/10/2 Lev Serebryakov : > Hello, Freebsd-hackers. > >  Here are several memory-allocation mechanisms in the kernel. The two > I'm aware of is MALLOC_DEFINE()/malloc()/free() and uma_* (zone(9)). > >  As far as I understand, malloc() is general-purpose, but it has > fixed "transaction cost" (in

Re: Way to get current tick number in kernel?

2011-10-02 Thread mdf
2011/10/2 Lev Serebryakov : > Hello, Freebsd-hackers. > >  What should I use to measure short intervals of time between events > in kernel? I don't need any "time" in means of, for example, time(3) > API, but some monotonically and uniformly increasing counter with > known frequency. As cheap as po

Re: Atomic increment and get?

2011-10-03 Thread mdf
2011/10/3 Lev Serebryakov : >  Is here atomic increment and get (or add and get) operation in >  kernel? I cannot find one. Here is atomic_add_32(), but it doesn't >  return result. And here is no atomic_add_64() on 32 bit system :( See atomic_fetchadd_int. Not all hardware has 64-bit atomic inst

Re: NUMA Support is there in FreeBSD.

2011-10-03 Thread mdf
On Mon, Oct 3, 2011 at 7:55 AM, satish kondapalli wrote: > I am new to FreeBSD, I just want know whether FreeBSD supports NUMA. > If FreeBSD supports NUMA what are the kernel API to allocate memory? > is there any example driver or any driver which is using the NUMA API? > > please provide some in

Re: NUMA Support is there in FreeBSD.

2011-10-03 Thread mdf
On Mon, Oct 3, 2011 at 10:24 AM, Arnaud Lacombe wrote: > Hi, > > On Mon, Oct 3, 2011 at 12:31 PM,   wrote: >> On Mon, Oct 3, 2011 at 7:55 AM, satish kondapalli >> wrote: >>> I am new to FreeBSD, I just want know whether FreeBSD supports NUMA. >>> If FreeBSD supports NUMA what are the kernel API

Re: Using Valgrind on FreeBSD

2011-10-07 Thread mdf
2011/10/7 Mustafa Reşit Şahin : > I am trying to run Valgrind on FreeBSD. I am getting the error about > ksem_open which i stated below. I have searched for  a solution to be able > to solve this problem and found the calgrind patch. I could not found the > instructions to apply this patch. How can

Re: How to express inter-directory dependencies in infrastructure?

2011-10-30 Thread mdf
2011/10/30 Lev Serebryakov : > Hello, Hackers. > >  (SORRY FOR SENDING INCOMPLETE MESSAGE) > >  How to express inter-directory dependencies in infrastructure? > >  I have project, which has two subdirectories: "lib" and "bin". >  Top-level Makefile is simple one, looks like this: > > =

Re: How to remopve "volatile" qualifier from pointer without warning from gcc?

2011-10-30 Thread mdf
2011/10/30 Lev Serebryakov : > Hello, Hackers. > >  I need to pass "volatile void *" to API function, which takes > "void*". gcc (on FreeBSD 8.2) emits warning, and as in FreeBSD-styed > code warnings are treated as errors, program could not be built. > >  Manual casting gives warning, too... See

Re: question regarding style(9) and field initialisers in structs

2011-11-02 Thread mdf
On Wed, Nov 2, 2011 at 4:56 PM, Alexander Best wrote: > i sent the following message to freebsd-quaestions@ and got no answer. mybe it > is better suited for freebsd-hackers@. > > hi there, > > i found hundreds of the following cases in the FreeBSD src: > > [...] > struct periph_driver { >        

Re: Communication between kernel and userspace via local socket

2011-11-15 Thread mdf
On Tue, Nov 15, 2011 at 12:18 PM, Maxim Ignatenko wrote: > frHi, > > I'm currently inventing the wheel^W^W^Wwriting a firewall from scratch and > looking for most convenient way to establish communication between userspace > processes and kernel part. Communication pattern best fits to listening >

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-11-19 Thread mdf
On Sat, Nov 19, 2011 at 2:01 AM, Gleb Kurtsou wrote: > Hi, > > I was lucky to write a bit of code which gcc 4.2 fails to compile > correctly with -O2. Too keep long story short the code fails for gcc > from base system and last gcc 4.2 snapshot from ports. It works with gcc > 4.3, gcc 4.4 on FreeB

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-11-19 Thread mdf
On Sat, Nov 19, 2011 at 8:19 AM, Gleb Kurtsou wrote: > On (19/11/2011 07:26), m...@freebsd.org wrote: >> On Sat, Nov 19, 2011 at 2:01 AM, Gleb Kurtsou wrote: >> > Hi, >> > >> > I was lucky to write a bit of code which gcc 4.2 fails to compile >> > correctly with -O2. Too keep long story short the

Re: gcc 4.2 miscompilation with -O2 -fno-omit-frame-pointer on amd64

2011-11-20 Thread mdf
On Sun, Nov 20, 2011 at 10:24 AM, Gleb Kurtsou wrote: > On (19/11/2011 09:11), m...@freebsd.org wrote: >> On Sat, Nov 19, 2011 at 8:19 AM, Gleb Kurtsou wrote: >> > On (19/11/2011 07:26), m...@freebsd.org wrote: >> >> On Sat, Nov 19, 2011 at 2:01 AM, Gleb Kurtsou >> >> wrote: >> >> > Hi, >> >> >

Re: kern_yield vs ukbd_yield

2011-12-11 Thread mdf
On Sun, Dec 11, 2011 at 1:12 PM, Andriy Gapon wrote: > > Does the following change do what I think that it does? > Thank you! > > Author: Andriy Gapon > Date:   Thu Sep 1 16:50:13 2011 +0300 > >    ukbd: drop local duplicate of kern_yield and use that instead > > diff --git a/sys/dev/usb/input/uk

Re: kern_yield vs ukbd_yield

2011-12-12 Thread mdf
On Mon, Dec 12, 2011 at 12:03 AM, Andriy Gapon wrote: > on 11/12/2011 23:48 m...@freebsd.org said the following: >> On Sun, Dec 11, 2011 at 1:12 PM, Andriy Gapon wrote: >>> >>> Does the following change do what I think that it does? >>> Thank you! >>> >>> Author: Andriy Gapon >>> Date:   Thu Sep

Re: kern_yield vs ukbd_yield

2011-12-12 Thread mdf
On Mon, Dec 12, 2011 at 11:05 AM, John Baldwin wrote: > On Monday, December 12, 2011 10:58:22 am Hans Petter Selasky wrote: >> On Monday 12 December 2011 16:55:38 m...@freebsd.org wrote: >> > On Mon, Dec 12, 2011 at 12:03 AM, Andriy Gapon wrote: >> > > on 11/12/2011 23:48 m...@freebsd.org said th

Re: sysctl variable question

2011-12-18 Thread mdf
2011/12/18 Fernando Apesteguía : > El 18/12/2011 22:12, "Julian Elischer" escribió: >> >> On 12/18/11 12:18 PM, Fernando Apesteguía wrote: >>> >>> Hi all, >>> >>> I'm writing a small module just for fun. I would like to have two > variables: >>> >>> - "pid" of type unsigned int and RW so the user

Re: Per-mount syncer threads and fanout for pagedaemon cleaning

2011-12-27 Thread mdf
On Tue, Dec 27, 2011 at 8:05 AM, Attilio Rao wrote: > 2011/12/27 Giovanni Trematerra : >> On Mon, Dec 26, 2011 at 9:24 PM, Venkatesh Srinivas >> wrote: >>> Hi! >>> >>> I've been playing with two things in DragonFly that might be of interest >>> here. >>> >>> Thing #1 := >>> >>> First, per-mountpo

Re: Per-mount syncer threads and fanout for pagedaemon cleaning

2011-12-27 Thread mdf
On Tue, Dec 27, 2011 at 9:05 AM, Attilio Rao wrote: > 2011/12/27  : >> On Tue, Dec 27, 2011 at 8:05 AM, Attilio Rao wrote: >>> 2011/12/27 Giovanni Trematerra : On Mon, Dec 26, 2011 at 9:24 PM, Venkatesh Srinivas wrote: > Hi! > > I've been playing with two things in DragonFl

Re: Moving on ... (was: Re: FreeBSD has serious problems with...)

2012-02-08 Thread mdf
On Wed, Feb 8, 2012 at 10:33 PM, John Kozubik wrote: > If it were up to me, I think I would stake out a very loud and clear mission > statement for FreeBSD that explicitly sacrifices new features for longer > lifecycles and deeper investment in particular releases.  I've thought > seriously about

Re: OS support for fault tolerance

2012-02-14 Thread mdf
On Tue, Feb 14, 2012 at 8:57 AM, Julian Elischer wrote: > On 2/14/12 6:23 AM, Maninya M wrote: >> >> For multicore desktop computers, suppose one of the cores fails, the >> FreeBSD OS crashes. My question is about how I can make the OS tolerate >> this hardware fault. >> The strategy is to checkpo

Re: sysctl filesystem ?

2012-06-26 Thread mdf
On Tue, Jun 26, 2012 at 1:59 AM, Robert Watson wrote: > On Tue, 26 Jun 2012, Chris Rees wrote: > >>> as well as we don't depend of /proc for normal operation we shouldn't for >> >> say /proc/sysctl >>> >>> >>> improvements are welcome, better documentation is welcome, changes to >> >> what is OK -

Re: How to know __FreeBSD_version for a symbol

2012-08-13 Thread mdf
On Mon, Aug 13, 2012 at 1:24 AM, Hooman Fazaeli wrote: > Hi hackers > > In the process of back porting drivers to older freebsd versions, > We sometimes need to add suitable '#if __FreeBSD_version >= x ... else > ... ' > directives to the source to use an alternate function or exclude certain

Re: freebsd.org git repositories and svn ids

2012-09-03 Thread mdf
On Mon, Sep 3, 2012 at 7:29 AM, Eitan Adler wrote: > On 3 September 2012 10:19, Ryan Stone wrote: >> On Sun, Sep 2, 2012 at 5:45 PM, Eitan Adler wrote: >>> Why isn't git.freebsd.org a straight "git svn clone" ? AFAIK that isn't >>> broken. >> >> Well, let's put it this way: I started a git svn

Re: Change vfork() to posix_spawn()?

2012-09-14 Thread mdf
On Fri, Sep 14, 2012 at 4:45 AM, Erik Cederstrand wrote: > Den 14/09/2012 kl. 13.03 skrev Ivan Voras : > >> On 14/09/2012 09:49, Erik Cederstrand wrote: >>> Hello hackers, >>> >>> I'm looking through the Clang Analyzer scans on >>> http://scan.freebsd.your.org/freebsd-head looking for false posit

Re: _mtx_lock_spin: obsolete historic handling of kdb_active and panicstr?

2012-10-17 Thread mdf
On Wed, Oct 17, 2012 at 4:20 AM, Andriy Gapon wrote: > > _mtx_lock_spin has the following check in its retry loop: > if (i < 6000 || kdb_active || panicstr != NULL) > DELAY(1); > else > _mtx_lock_spin_failed(m); > [snip analysis] > > So I'd like to propose to remove those check

Re: kmem_map auto-sizing and size dependencies

2013-01-18 Thread mdf
On Fri, Jan 18, 2013 at 7:29 AM, Andre Oppermann wrote: > The (inital?) size of the kmem_map is determined by some voodoo magic, > a sprinkle of nmbclusters * PAGE_SIZE incrementor and lots of tunables. > However it seems to work out to an effective kmem_map_size of about 58MB > on my 16GB AMD64 d

Re: How to validate the variable size memory block in ioctl handler?

2013-01-20 Thread mdf
On Sun, Jan 20, 2013 at 3:01 PM, Yuri wrote: > I am implementing an ioctl that reads/writes variable size structure. > Allocated size is supplied by the caller in the structure itself. > struct my_struct { > int len; // allocated size > other_struct s[1]; > }; > ioctl request id is defined as

Re: How to validate the variable size memory block in ioctl handler?

2013-01-20 Thread mdf
On Sun, Jan 20, 2013 at 6:50 PM, Yuri wrote: > On 01/20/2013 16:59, m...@freebsd.org wrote: > > To do what you want it sounds like you want your handler to take something > like: > > struct var_ioctl { > int len; > void *data; > }; > > Then then handler itself would have to use copyin/copy

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-05 Thread mdf
On Tue, Feb 5, 2013 at 7:14 AM, Konstantin Belousov wrote: > On Mon, Feb 04, 2013 at 03:05:15PM -0800, Neel Natu wrote: >> Hi, >> >> I have a patch to dynamically calculate NKPT for amd64 kernels. This >> should fix the various issues that people pointed out in the email >> thread. >> >> Please re

Re: Stupid question about integer sizes

2013-02-19 Thread mdf
On Tue, Feb 19, 2013 at 5:11 AM, Borja Marcos wrote: > > Hello, > > I'm really sorry if this is a stupid question, but as far as I know, > u_int64_t defined in /usr/include/sys/types.h should *always* be > a 64 bit unsigned integer, right? > > Seems there's a bug (or I need more and stronger coff

extattr_set_* return type

2013-03-30 Thread mdf
extattr_list return ssize_t, so this is inconsistent. The patch at http://people.freebsd.org/~mdf/0001-Fix-return-type-of-extattr_set_-and-fix-rmextattr-8-.patchfixes this. It compiles but it's untested. I don't think any compat shims are needed, since an old application will still sign exten

Re: extattr_set_* return type

2013-04-01 Thread mdf
t the number of bytes written, like write(2). This is > > because extattr_set_* is declared as returning an int, not an ssize_t. > > Both extattr_get and extattr_list return ssize_t, so this is > inconsistent. > > > > The patch at > > > http://people.free

Re: extattr_set_* return type

2013-04-01 Thread mdf
so this is >> inconsistent. >> > >> > The patch at >> > >> http://people.freebsd.org/~mdf/0001-Fix-return-type-of-extattr_set_-and-fix- >> rmextattr-8-.patchfixes<http://people.freebsd.org/~mdf/0001-Fix-return-type-of-extattr_set_-and-fix-rmextattr-8-.patchfixe

Re: Fix MNAMELEN or reimplement struct statfs

2013-06-08 Thread mdf
On Sat, Jun 8, 2013 at 3:52 PM, Dirk Engling wrote: > The arbitrary value > > #define MNAMELEN88 /* size of on/from name bufs */ > > struct statfs { > [...] > charf_mntfromname[MNAMELEN];/* mounted filesystem */ > charf_mntonname[MNAMELEN]; /* directo

Re: b_freelist TAILQ/SLIST

2013-06-28 Thread mdf
On Fri, Jun 28, 2013 at 8:56 AM, Adrian Chadd wrote: > On 28 June 2013 08:37, Alexander Motin wrote: > >> Otherwise it may just creep up again after someone does another change > >> in an unrelated part of the kernel. > > > > Big win or small, TAILQ is still heavier then STAILQ, while it is not

Re: another question

2013-07-01 Thread mdf
On Mon, Jul 1, 2013 at 5:42 PM, David Sanford wrote: > Hi, > > Thanks for your responses to my first question. They were very helpful. > > In looking at the code, I ran across the functions setprogname and > getprogname. According to the man page: > In FreeBSD, the name of the program is set by th

Re: loader prompt: list / on other device

2010-06-23 Thread mdf
On Wed, Jun 23, 2010 at 9:03 AM, wrote: > I've escaped to loader prompt: > Current device is disk0s3a, from which this loader is running. > > My USB stick is device1 and device1s2a is UFS /, on which I would like to > reach some file or simply list directory. IIRC, there is no way to do this (bu

Re: strange problem with int64_t variables

2010-07-11 Thread mdf
On Sun, Jul 11, 2010 at 7:58 AM, Gabor Kovesdan wrote: > Em 2010.07.11. 16:54, Dimitry Andric escreveu: >> >> On 2010-07-11 16:46, Gabor Kovesdan wrote: >> >>> >>> I have two int64_t variables in kernel code, first is stored internally >>> and the second one is passed from a syscall argument. When

sched_pin() versus PCPU_GET

2010-07-29 Thread mdf
We've seen a few instances at work where witness_warn() in ast() indicates the sched lock is still held, but the place it claims it was held by is in fact sometimes not possible to keep the lock, like: thread_lock(td); td->td_flags &= ~TDF_SELECT; thread_unlock(td); What I

Re: sched_pin() versus PCPU_GET

2010-07-29 Thread mdf
On Thu, Jul 29, 2010 at 4:39 PM, wrote: > We've seen a few instances at work where witness_warn() in ast() > indicates the sched lock is still held, but the place it claims it was > held by is in fact sometimes not possible to keep the lock, like: > >        thread_lock(td); >        td->td_flags

Re: sched_pin() versus PCPU_GET

2010-07-30 Thread mdf
2010/7/30 Kostik Belousov : > On Thu, Jul 29, 2010 at 04:57:25PM -0700, m...@freebsd.org wrote: >> On Thu, Jul 29, 2010 at 4:39 PM,   wrote: >> > We've seen a few instances at work where witness_warn() in ast() >> > indicates the sched lock is still held, but the place it claims it was >> > held by

Re: sched_pin() versus PCPU_GET

2010-08-03 Thread mdf
On Fri, Jul 30, 2010 at 2:31 PM, John Baldwin wrote: > On Friday, July 30, 2010 10:08:22 am John Baldwin wrote: >> On Thursday, July 29, 2010 7:39:02 pm m...@freebsd.org wrote: >> > We've seen a few instances at work where witness_warn() in ast() >> > indicates the sched lock is still held, but th

Re: sched_pin() versus PCPU_GET

2010-08-04 Thread mdf
On Wed, Aug 4, 2010 at 2:26 PM, John Baldwin wrote: > On Tuesday, August 03, 2010 9:46:16 pm m...@freebsd.org wrote: >> On Fri, Jul 30, 2010 at 2:31 PM, John Baldwin wrote: >> > On Friday, July 30, 2010 10:08:22 am John Baldwin wrote: >> >> On Thursday, July 29, 2010 7:39:02 pm m...@freebsd.org w

Re: sched_pin() versus PCPU_GET

2010-08-05 Thread mdf
On Wed, Aug 4, 2010 at 11:55 AM, John Baldwin wrote: > On Wednesday, August 04, 2010 12:20:31 pm m...@freebsd.org wrote: >> On Wed, Aug 4, 2010 at 2:26 PM, John Baldwin wrote: >> > On Tuesday, August 03, 2010 9:46:16 pm m...@freebsd.org wrote: >> >> On Fri, Jul 30, 2010 at 2:31 PM, John Baldwin

Re: sched_pin() versus PCPU_GET

2010-08-05 Thread mdf
On Wed, Aug 4, 2010 at 9:20 AM, wrote: > On Wed, Aug 4, 2010 at 2:26 PM, John Baldwin wrote: >> Actually, I would beg to differ in that case.  If PCPU_GET(spinlocks) >> returns non-NULL, then it means that you hold a spin lock, > > ll_count is 0 for the "correct" pc_spinlocks and non-zero for th

Re: sched_pin() versus PCPU_GET

2010-08-05 Thread mdf
>> (gdb) p panic_cpu >> $9 = 2 >> (gdb) p dumptid >> $12 = 100751 >> (gdb) p cpuhead.slh_first->pc_allcpu.sle_next->pc_curthread->td_tid >> $14 = 100751 >> >> (gdb) p *cpuhead.slh_first->pc_allcpu.sle_next >> $6 = { >>   pc_curthread = 0xff00716d6960, >>   pc_cpuid = 2, >>   pc_spinlocks = 0xff

Re: sched_pin() versus PCPU_GET

2010-08-08 Thread mdf
On Sun, Aug 8, 2010 at 2:43 PM, Attilio Rao wrote: > 2010/8/4  : >> On Fri, Jul 30, 2010 at 2:31 PM, John Baldwin wrote: >>> On Friday, July 30, 2010 10:08:22 am John Baldwin wrote: On Thursday, July 29, 2010 7:39:02 pm m...@freebsd.org wrote: > We've seen a few instances at work where

Re: UMA allocations from a specific physical range

2010-09-05 Thread mdf
On Mon, Sep 6, 2010 at 1:38 AM, Nathan Whitehorn wrote: > PowerPC hypervisors typically provided a restricted range on memory when > the MMU is disabled, as it is when initially handling exceptions. In > order to restore virtual memory, the powerpc64 code needs to read a data > structure called th

Re: UMA allocations from a specific physical range

2010-09-05 Thread mdf
On Mon, Sep 6, 2010 at 4:28 AM, Nathan Whitehorn wrote: > On 09/05/10 22:51, m...@freebsd.org wrote: >> On Mon, Sep 6, 2010 at 1:38 AM, Nathan Whitehorn >> wrote: >> >>> PowerPC hypervisors typically provided a restricted range on memory when >>> the MMU is disabled, as it is when initially hand