[RELEASE] lastdown(8) -- A utility to show you whom was logged on when a system went down

2011-06-28 Thread Devin Teske
I've written a new script. It's called "lastdown". What it does is pretty simple, but yet oh-so valuable to us for administering large clusters. 1. Use sysctl(8) to get the ``kern.boottime'' MIB 2. Parse the `sec' value from the above 3. Make optional adjustments 4. Pass value to date(1) to form

Re: How can process in STOP state consume 200% CPU?

2011-06-28 Thread perryh
Yuri wrote: > On 06/28/2011 17:24, Sergey Babkin wrote: > > Most probably the process is running in an endless loop in the > > kernel mode ... While it's in the kernel mode, you can't do > > anything to it other than use the kernel debugger. > > How is this normally possible to make program to l

Re: Re: How can process in STOP state consume 200% CPU?

2011-06-28 Thread Sergey Babkin
Jun 28, 2011 04:29:35 PM, jh...@dataix.net wrote: >> I got Vir= tualBox process in a strange state. It has the status STOP but >>= shows by top as consuming 200% CPU for a very long time. >> How i= s this possible and what does this mean? Process time stays at 0:00 >= ;> TIME.

Re: How can process in STOP state consume 200% CPU?

2011-06-28 Thread Yuri
On 06/28/2011 17:24, Sergey Babkin wrote: (Sorry about quoting, it doesn't always work well from the web client). Most probably the process is running in an endless loop in the kernel mode. Where it got after entering the STOP state. Remember, the signals are processed only after the process e

Re: How can process in STOP state consume 200% CPU?

2011-06-28 Thread perryh
Yuri wrote: > kill -9 doesn't kill it. I think I've seen this before; it looks as if, since the process is STOPped, the "kill -9" remains pending rather than being acted upon. I _think_ you can make the process go away by doing a "kill -CONT" after the "kill -9". No idea how a STOPped process c

Re: Default value for UIDs

2011-06-28 Thread Chris Rees
On 28 Jun 2011 21:33, "Greg Lewis" wrote: > > On Tue, Jun 28, 2011 at 09:11:54PM +0100, Chris Rees wrote: > > On 28 June 2011 20:57, Chris Rees wrote: > > > On 28 June 2011 20:50, jhell wrote: > > >> Also: (stable/8) /usr/ports/UIDs > > >> dbxml:*:945:945::0:0:& user:/nonexistent:/sbin/nologin >

Re: Default value for UIDs

2011-06-28 Thread Greg Lewis
On Tue, Jun 28, 2011 at 09:11:54PM +0100, Chris Rees wrote: > On 28 June 2011 20:57, Chris Rees wrote: > > On 28 June 2011 20:50, jhell wrote: > >> On Tue, Jun 28, 2011 at 06:30:23PM +0100, Chris Rees wrote: > >>> On 28 June 2011 17:59, Dan Nelson wrote: > >>> > In the last episode (Jun 28), Chr

Re: How can process in STOP state consume 200% CPU?

2011-06-28 Thread jhell
On Tue, Jun 28, 2011 at 11:40:29AM -0700, Yuri wrote: > I got VirtualBox process in a strange state. It has the status STOP but > shows by top as consuming 200% CPU for a very long time. > How is this possible and what does this mean? Process time stays at 0:00 > TIME. kill -9 doesn't kill it.

Re: Default value for UIDs

2011-06-28 Thread jhell
On Tue, Jun 28, 2011 at 06:30:23PM +0100, Chris Rees wrote: > On 28 June 2011 17:59, Dan Nelson wrote: > > In the last episode (Jun 28), Chris Rees said: > >> Hi all, > >> > >> [crees@zeus]~% tail -n 2 /usr/ports/UIDs > >> dbxml:*:949:949::0:0:dbXML user:/nonexistent:/sbin/nologin > >> nobody:*:

Re: Default value for UIDs

2011-06-28 Thread Chris Rees
On 28 June 2011 20:57, Chris Rees wrote: > On 28 June 2011 20:50, jhell wrote: >> On Tue, Jun 28, 2011 at 06:30:23PM +0100, Chris Rees wrote: >>> On 28 June 2011 17:59, Dan Nelson wrote: >>> > In the last episode (Jun 28), Chris Rees said: >>> >> Hi all, >>> >> >>> >> [crees@zeus]~% tail -n 2 /u

Re: How can process in STOP state consume 200% CPU?

2011-06-28 Thread Josh Carroll
On Tue, Jun 28, 2011 at 11:40 AM, Yuri wrote: > I got VirtualBox process in a strange state. It has the status STOP but > shows by top as consuming 200% CPU for a very long time. > How is this possible and what does this mean? Process time stays at 0:00 > TIME. kill -9 doesn't kill it. > >  PID US

Re: Default value for UIDs

2011-06-28 Thread Chris Rees
On 28 June 2011 20:50, jhell wrote: > On Tue, Jun 28, 2011 at 06:30:23PM +0100, Chris Rees wrote: >> On 28 June 2011 17:59, Dan Nelson wrote: >> > In the last episode (Jun 28), Chris Rees said: >> >> Hi all, >> >> >> >> [crees@zeus]~% tail -n 2 /usr/ports/UIDs >> >> dbxml:*:949:949::0:0:dbXML use

How can process in STOP state consume 200% CPU?

2011-06-28 Thread Yuri
I got VirtualBox process in a strange state. It has the status STOP but shows by top as consuming 200% CPU for a very long time. How is this possible and what does this mean? Process time stays at 0:00 TIME. kill -9 doesn't kill it. PID USERNAME THR PRI NICE SIZERES STATE C TIM

Re: Default value for UIDs

2011-06-28 Thread Chris Rees
On 28 June 2011 17:59, Dan Nelson wrote: > In the last episode (Jun 28), Chris Rees said: >> Hi all, >> >> [crees@zeus]~% tail -n 2 /usr/ports/UIDs >> dbxml:*:949:949::0:0:dbXML user:/nonexistent:/sbin/nologin >> nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin >> [crees@

Re: Default value for UIDs

2011-06-28 Thread Dan Nelson
In the last episode (Jun 28), Chris Rees said: > Hi all, > > [crees@zeus]~% tail -n 2 /usr/ports/UIDs > dbxml:*:949:949::0:0:dbXML user:/nonexistent:/sbin/nologin > nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin > [crees@zeus]~% grep crees /etc/passwd > crees:*:1001:100

Default value for UIDs

2011-06-28 Thread Chris Rees
Hi all, [crees@zeus]~% tail -n 2 /usr/ports/UIDs dbxml:*:949:949::0:0:dbXML user:/nonexistent:/sbin/nologin nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin [crees@zeus]~% grep crees /etc/passwd crees:*:1001:1001:Chris Rees:/home/crees:/bin/tcsh chris:*:1001:1001:Chris Re

tls_model in clang?

2011-06-28 Thread Ben Laurie
.../lib/libc/stdlib/malloc.c:1106:38: warning: unknown attribute 'tls_model' ignored [-Wattributes] static __thread arena_t *arenas_map TLS_MODEL; ^ .../lib/libc/stdlib/malloc.c:243:37: note: instantiated from: # define TLS_MODEL __at