Getting swapped-out memory per process

2011-12-26 Thread Boris Kochergin
Hi. Is there a way, from userspace, to get the amount of memory a given process currently has swapped out? -Boris ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: Converting from jiffies to ticks

2010-08-20 Thread Boris Kochergin
Jesse Smith wrote: I am currently trying to port a program from Linux to FreeBSD which detects how much processor time a process is using. The native Linux code does this (in part) by reading the number of "jiffies" a given process uses. This info is pulled from the /proc/PID/stat file. One func

Re: Use of printf's inside a kernel thread

2010-07-15 Thread Boris Kochergin
Patrick Mahan wrote: Just wondering if there is some constraints to using printf() calls inside a kernel thread (created by kthread_create()). I'm currently trying to debug a worker thread but the printf's are coming out garbled. Not entirely sure why this could be occurring. OS: FreeBSD 7.3

Re: inet_* functions in kernel?

2010-07-12 Thread Boris Kochergin
Bartosz Marcin Kojak wrote: Hi. Currently I'm writing a kernel module using MAC Framework to control binding to local IP addresses (kind of mac_portacl variation) and I need some advice. I want to be able to write rules for module through sysctl (rule will contain IP addresses in human-rea

Re: bad RAM? prove it with a crash dump?

2010-05-06 Thread Boris Kochergin
Atom Smasher wrote: i suspect i've got bad RAM but memtest has run through several dozen iterations without a problem. my (3 year old) laptop will run for a few days or weeks and then crash/freeze/hang. i've enabled crash dumps and i'm wondering if/how the dump might be able to (dis)prove that

Re: To sendmail or to postfix that is the question?

2010-03-10 Thread Boris Kochergin
Steven Hartland wrote: Ok so I'm looking to replace our current windows mail server using mdaemon with a FreeBSD solution, having looked around there seems to be differing opinions of which is the best option to go with between sendmail and postfix. The problem with looking for info on this is t

Re: Getting running time of child

2009-11-19 Thread Boris Kochergin
Koffie Yahoo wrote: I've looked but not found (and I hope I'm in the right group here): Is there a way to get the user time and system time of a /running/ child from its parent (without having to mount procfs)? If you have only one child, there's getrusage(2). Unfortunately, that o

Re: unit testing automated password assignment

2009-11-17 Thread Boris Kochergin
Aryeh Friedman wrote: I have a script that automatically creates a user and sets their password: echo $3 | sudo pw useradd $1 -m -c "$2" -s tcsh -h0 and by my employer's policy I need to unit test... my question is how... the checking for user existence and such is easy but how do I test that t

Re: Make process title - % complete

2009-10-20 Thread Boris Kochergin
Giorgos Keramidas wrote: On Mon, 19 Oct 2009 17:51:42 +0200, Ivan Voras wrote: 2009/10/19 Alex Kozlov : How about add this statistic to make info handler? You mean SIGINFO? Yes, that's the ``info handler''. While printing something on SINGINFO arrival is a nice idea, it

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-23 Thread Boris Kochergin
n0g0013 wrote: On 23.03-10:20, Boris Kochergin wrote: [ ... ] Well, bumping it does get rid of messages like: Mar 22 20:44:26 hydrogen sshd[96152]: getgrouplist: groups list too small Mar 22 20:44:26 hydrogen sshd[96152]: fatal: initgroups: [user]: Invalid argument yes, that's

Re: Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-23 Thread Boris Kochergin
ttw+...@cobbled.net wrote: On 22.03-22:33, Boris Kochergin wrote: Ahoy. I got bitten by this today--a system I administer for someone had users in more than 16 groups, so I had to bump the value, recompile the kernel, and reboot. It seems desirable to (at the very least) make this a read

Doing away with NGROUPS_MAX in src/sys/sys/syslimits.h?

2009-03-22 Thread Boris Kochergin
Ahoy. I got bitten by this today--a system I administer for someone had users in more than 16 groups, so I had to bump the value, recompile the kernel, and reboot. It seems desirable to (at the very least) make this a read-only tunable that can be set using /boot/loader.conf, so as to avoid sou