Re: dummynet(4) kernel process CPU usage monitoring

2011-11-21 Thread Luigi Rizzo
On Mon, Nov 21, 2011 at 01:23:22PM +0700, Eugene Grosbein wrote: Hi! I need to draw graph of dummynet's CPU usage. procstat -t 0 shows me TID (thread id) of dummynet kernel thread. ps -Hxo time,lwp shows me total CPU time consumed by this thread. Now I see this time has 9 seconds increase

Re: easy way to determine if a stream or fd is seekable

2011-11-21 Thread Alexander Best
On Mon Nov 21 11, Benjamin Kaduk wrote: On Mon, 21 Nov 2011, per...@pluto.rain.com wrote: Alexander Best arun...@freebsd.org wrote: here's a revised patch. ... +.Sh CAVEATS +If the +.Fn lseek +system call is operating on a device, which is incapable of seeking, +it will request the

Re: easy way to determine if a stream or fd is seekable

2011-11-21 Thread Alexander Best
On Mon Nov 21 11, Alexander Best wrote: On Mon Nov 21 11, Benjamin Kaduk wrote: On Mon, 21 Nov 2011, per...@pluto.rain.com wrote: Alexander Best arun...@freebsd.org wrote: here's a revised patch. ... +.Sh CAVEATS +If the +.Fn lseek +system call is operating on a device,

Re: dummynet(4) kernel process CPU usage monitoring

2011-11-21 Thread Eugene Grosbein
Hi! I need to draw graph of dummynet's CPU usage. procstat -t 0 shows me TID (thread id) of dummynet kernel thread. ps -Hxo time,lwp shows me total CPU time consumed by this thread. Now I see this time has 9 seconds increase during 60 seconds of real time. This should be 9/60=15% CPU usage, but

Re: Reprobing of devices after module load?

2011-11-21 Thread John Baldwin
On Friday, November 18, 2011 11:48:20 am Paul B. Mahol wrote: Hi, Is there nice way in FreeBSD to force reprobe of devices for specific driver like it is done when kernel module is loaded (via DRIVER_MODULE(...) stuff)? Note that those probes happen for specific buses rather than for

Re: dummynet(4) kernel process CPU usage monitoring

2011-11-21 Thread Eugene Grosbein
21.11.2011 23:37, Ryan Stone пишет: On Mon, Nov 21, 2011 at 1:23 AM, Eugene Grosbein eu...@grosbein.pp.ru wrote: Hi! I need to draw graph of dummynet's CPU usage. procstat -t 0 shows me TID (thread id) of dummynet kernel thread. ps -Hxo time,lwp shows me total CPU time consumed by this

Re: dummynet(4) kernel process CPU usage monitoring

2011-11-21 Thread Ryan Stone
On Mon, Nov 21, 2011 at 1:23 AM, Eugene Grosbein eu...@grosbein.pp.ru wrote: Hi! I need to draw graph of dummynet's CPU usage. procstat -t 0 shows me TID (thread id) of dummynet kernel thread. ps -Hxo time,lwp shows me total CPU time consumed by this thread. Now I see this time has 9

Re: Reprobing of devices after module load?

2011-11-21 Thread Warner Losh
On Nov 21, 2011, at 9:26 AM, John Baldwin wrote: On Friday, November 18, 2011 11:48:20 am Paul B. Mahol wrote: Hi, Is there nice way in FreeBSD to force reprobe of devices for specific driver like it is done when kernel module is loaded (via DRIVER_MODULE(...) stuff)? Note that those

Limiting disk I/O by jail or uid?

2011-11-21 Thread Stefan Bethke
I have a process that tends to eat up all available disk bandwidth. I have other processes that I would like to have preference over this one process. Is there a facility that would allow me to assign priorities based on jail ID or uid? This is on 8-stable (but will upgrade to 9 soon) on

Re: Reprobing of devices after module load?

2011-11-21 Thread Paul B. Mahol
On 11/21/11, John Baldwin j...@freebsd.org wrote: On Friday, November 18, 2011 11:48:20 am Paul B. Mahol wrote: Hi, Is there nice way in FreeBSD to force reprobe of devices for specific driver like it is done when kernel module is loaded (via DRIVER_MODULE(...) stuff)? Note that those

Re: Limiting disk I/O by jail or uid?

2011-11-21 Thread Adam Vande More
On Mon, Nov 21, 2011 at 11:47 AM, Stefan Bethke s...@lassitu.de wrote: I have a process that tends to eat up all available disk bandwidth. I have other processes that I would like to have preference over this one process. Is there a facility that would allow me to assign priorities based on

Re: Limiting disk I/O by jail or uid?

2011-11-21 Thread Stefan Bethke
Am 21.11.2011 um 19:32 schrieb Adam Vande More: On Mon, Nov 21, 2011 at 11:47 AM, Stefan Bethke s...@lassitu.de wrote: I have a process that tends to eat up all available disk bandwidth. I have other processes that I would like to have preference over this one process. Is there a facility

Re: Limiting disk I/O by jail or uid?

2011-11-21 Thread Adam Vande More
On Mon, Nov 21, 2011 at 1:58 PM, Stefan Bethke s...@lassitu.de wrote: Interesting, but it doesn't seem to offer limiting the I/O bandwidth induced by a process or jail, or assigning different priorities, which would need to be implemented in the ZFS or GEOM schedulers, I suppose. Limiting

Re: Limiting disk I/O by jail or uid?

2011-11-21 Thread Stefan Bethke
Am 21.11.2011 um 21:40 schrieb Adam Vande More: On Mon, Nov 21, 2011 at 1:58 PM, Stefan Bethke s...@lassitu.de wrote: Interesting, but it doesn't seem to offer limiting the I/O bandwidth induced by a process or jail, or assigning different priorities, which would need to be implemented in

Re: Limiting disk I/O by jail or uid?

2011-11-21 Thread Stefan Bethke
Am 21.11.2011 um 21:42 schrieb Stefan Bethke: Am 21.11.2011 um 21:40 schrieb Adam Vande More: On Mon, Nov 21, 2011 at 1:58 PM, Stefan Bethke s...@lassitu.de wrote: Interesting, but it doesn't seem to offer limiting the I/O bandwidth induced by a process or jail, or assigning different

FW: How to compile opencrypto separately

2011-11-21 Thread aram baghomian
Can any hacker help me? From: aram_baghom...@hotmail.com To: freebsd-hackers@freebsd.org Subject: How to compile opencrypto separately Date: Mon, 21 Nov 2011 06:24:17 + Hi I have some problems with opencrypto project and i hope you want to help me for solve them. - I trying to

Re: How to compile opencrypto separately

2011-11-21 Thread Ryan Stone
2011/11/21 aram baghomian aram_baghom...@hotmail.com: Hi I'm sorry, i forgot to register my email  address to your mailing list. now i registered in it and resend my question. I have some problems with opencrypto project  and i hope you want to help me for solve them. - I want to

Re: Limiting disk I/O by jail or uid?

2011-11-21 Thread Adam Vande More
On Mon, Nov 21, 2011 at 3:25 PM, Stefan Bethke s...@lassitu.de wrote: Unfortunately, the process I want to limit is not sufficiently CPU bound to be limited that way vs. all the other processes. I guess I'll put in a second disk. Well, a couple other suggestions. Have you tried with

Re: easy way to determine if a stream or fd is seekable

2011-11-21 Thread Benjamin Kaduk
On Mon, 21 Nov 2011, Alexander Best wrote: On Mon Nov 21 11, Alexander Best wrote: On Mon Nov 21 11, Benjamin Kaduk wrote: On Mon, 21 Nov 2011, per...@pluto.rain.com wrote: Alexander Best arun...@freebsd.org wrote: here's a revised patch. ... +.Sh CAVEATS +If the +.Fn lseek +system call

Re: dummynet(4) kernel process CPU usage monitoring

2011-11-21 Thread Eugene Grosbein
21.11.2011 15:30, Luigi Rizzo пишет: On Mon, Nov 21, 2011 at 01:23:22PM +0700, Eugene Grosbein wrote: Hi! I need to draw graph of dummynet's CPU usage. procstat -t 0 shows me TID (thread id) of dummynet kernel thread. ps -Hxo time,lwp shows me total CPU time consumed by this thread. Now I