tags 628617 - moreinfo
thanks

>   I've tried various process and values for the process_age_sec and I
> have been able to get that warning.  Are you still getting this and what
> sort of things are you trying to kill?

Erm, processes?  :)


The problem is that killall asserts that the age of a process, as a
floating-point number of seconds, must always be greater than zero.
However, that value has a resolution of one jiffy[*], so it may very
well be equal to zero if a process was launched within the same time
slice as the call to process_age().  (Actually, as the value is obtained
by substracting two floating-point values, it sometimes falls slightly
below zero.)


You may attempt to trigger this bug yourself by launching a bunch of
short-lived processes.  In one terminal, run:

  $ while true; do sleep 5s; done 2> /dev/null

And in another:

  $ while true; do killall sleep --younger-than 5s | cat ; done

Whether or not this works for you will depend on your particular
machine.  I myself had great success on virtual machines (Xen and
VirtualBox), none at all on an small Atom box, and it was hit-and-miss
on my desktop.  (For some reason, the pipe to cat helped.)


[*] So says proc(5), but it's actually 0.01s here, despite CONFIG_HZ=250

-- 
The easiest way to get the root password is to become system admin.
                -- Unknown source



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to