Bug#596382: kfreebsd-image-8.1-1-686: kern.proc.all sysctl returns nothing/error. (SOLVED?)

2010-11-08 Thread Steve Langasek
On Sun, Nov 07, 2010 at 07:16:22PM +0100, Petr Salinger wrote: This happens since RLIMIT_MEMLOCK is 65536 but you are trying to lock 170496 bytes. If I remove the limit for locked memory everything seems to work: # ulimit -l # sysctl -x kern.proc.all kern.proc.all: Format:S,proc

Bug#596382: kfreebsd-image-8.1-1-686: kern.proc.all sysctl returns nothing/error.

2010-11-07 Thread Timo Juhani Lindfors
Hi, I extracted ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/8.1/FreeBSD-8.1-RELEASE-i386-disc1.iso to a chroot. If I run sysctl from that chroot it does not print anything either. Does this mean it's a kernel bug? (

Bug#596382: kfreebsd-image-8.1-1-686: kern.proc.all sysctl returns nothing/error. (SOLVED?)

2010-11-07 Thread Timo Juhani Lindfors
Hi, I think I found the problem. The userland code does /* find an estimate of how much we need for this var */ j = 0; i = sysctl(oid, nlen, 0, j, 0, 0); j += j; /* we want to be sure :-) */ val = oval = malloc(j + 1); if (val == NULL)

Bug#596382: kfreebsd-image-8.1-1-686: kern.proc.all sysctl returns nothing/error. (SOLVED?)

2010-11-07 Thread Petr Salinger
This happens since RLIMIT_MEMLOCK is 65536 but you are trying to lock 170496 bytes. If I remove the limit for locked memory everything seems to work: # ulimit -l # sysctl -x kern.proc.all kern.proc.all: Format:S,proc Length:79104 Dump:0x0003804459... Can you please confirm that this

Bug#596382: kfreebsd-image-8.1-1-686: kern.proc.all sysctl returns nothing/error.

2010-09-10 Thread Witold Baryluk
Package: kfreebsd-image-8.1-1-686 Version: 8.1-5 Severity: normal Hi. libgtop2 uses sysctl for retriving process list. (it is used in python-gtop and gnome-system-monitor for example). also sysctl -x kern.proc.all returns nothing. this variable is there as `sysctl -d kern | grep kern.proc`