On Wed, 11 Jul 2001, Yann Forget wrote:
> J'ai vu aussi des mails � ce sujet sur kernel-devel.
J'ai regard� � quel package appartenait uptime (dpkg -S uptime), je suis
ensuite all� sur http://bugs.debian.org/ et j'ai cherch� les bugs
concernant procps.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=82382&repeatmerged=yes
en bref, le nombre de jour que ta machine est up + un bug signed/unsigned
cause le probl�me. Remarquons que d'apr�s le commentaire du bug, m�me s'il
n'y avait pas ce bug, il appara�trait apr�s 400 jours (environ) sans
possibilit�s de correction.
Je cite aussi un bout du code:
* Some values in /proc are expressed in units of 1/HZ seconds, where HZ
* is the kernel clock tick rate. One of these units is called a jiffy.
* The HZ value used in the kernel may vary according to hacker desire.
* According to Linus Torvalds, this is not true. He considers the values
* in /proc as being in architecture-dependant units that have no relation
* to the kernel clock tick rate. Examination of the kernel source code
* reveals that opinion as wishful thinking.
*
* In any case, we need the HZ constant as used in /proc. (the real HZ value
* may differ, but we don't care) There are several ways we could get HZ:
*
* 1. Include the kernel header file. If it changes, recompile this library.
* 2. Use the sysconf() function. When HZ changes, recompile the C library!
* 3. Ask the kernel. This is obviously correct...
*
* Linus Torvalds won't let us ask the kernel, because he thinks we should
* not know the HZ value. Oh well, we don't have to listen to him.
* Someone smuggled out the HZ value. :-)
*
* This code should work fine, even if Linus fixes the kernel to match his
* stated behavior. The code only fails in case of a partial conversion.
Solution temporaire: remplacer manuellement /lib/libproc.so.2.0.6 par
http://search.alphanet.ch/~schaefer/libproc-jiffypatch.so.2.0.6.gz (�
d�compresser bien s�r), v�rifier le md5sum avant, c'est
19c510f4d37e40140a1a770413662750 libproc-jiffypatch.so.2.0.6.gz
--
http://www-internal.alphanet.ch/linux-leman/ avant de poser
une question. Ouais, pour se d�sabonner aussi.