Re: Spin down HDD after disk sync or before power off

2009-03-08 Thread Bernd Walter
On Fri, Mar 06, 2009 at 03:47:38PM -0600, Rick C. Petty wrote: > On Fri, Mar 06, 2009 at 03:30:14PM -0600, Octavian Covalschi wrote: > > Why is spinning down is bad for HDD ? I believe it's better to spindown a > > drive, > > instead of cutting power too sudden. > > Comparing those two, I'd say it

CPU user/kernel time given the PID

2009-03-08 Thread Jay Loden
I'm working on FreeBSD support for a Python library called psutil for reading process information in a cross-platform fashion. Each platform-specific module is written in C, so the majority of the FreeBSD code is a C interface to various process information. I've been having some trouble working ou

Re: uma_zone

2009-03-08 Thread Alexej Sokolov
2009/3/7 Robert Watson > On Wed, 4 Mar 2009, Alexej Sokolov wrote: > > how can I get the size and pointer of some allocated uma zone ? For >> example: zone_pack >> > > Could you tell us a bit more about the context in which you want to do > this? Interrupt kontext. > Normally kernel modules a

Re: CPU user/kernel time given the PID

2009-03-08 Thread Oliver Fromme
Jay Loden wrote: > I'm working on FreeBSD support for a Python library called psutil for reading > process information in a cross-platform fashion. Each platform-specific > module > is written in C, so the majority of the FreeBSD code is a C interface to > various > process information. I'v

Re: CPU user/kernel time given the PID

2009-03-08 Thread Jay Loden
Oliver Fromme wrote: > ps(1) and top(1) both use ki_pctcpu, see the getpcpu() > function in src/bin/ps/print.c and format_next_process() > in src/usr.bin/top/machine.c Hi Oliver, thanks for the reply. I noticed the same after some digging through the source code for ps and top. While CPU usage % i

Re: CPU user/kernel time given the PID

2009-03-08 Thread Dan Nelson
In the last episode (Mar 08), Jay Loden said: > Oliver Fromme wrote: > > ps(1) and top(1) both use ki_pctcpu, see the getpcpu() function in > > src/bin/ps/print.c and format_next_process() in > > src/usr.bin/top/machine.c > > Hi Oliver, thanks for the reply. I noticed the same after some digging >

Re: CPU user/kernel time given the PID

2009-03-08 Thread David Wolfskill
On Sun, Mar 08, 2009 at 08:33:27PM -0400, Jay Loden wrote: > Oliver Fromme wrote: > > ps(1) and top(1) both use ki_pctcpu, see the getpcpu() > > function in src/bin/ps/print.c and format_next_process() > > in src/usr.bin/top/machine.c > > Hi Oliver, thanks for the reply. I noticed the same after s