In short, he has to tinker with kernel variable jiffies in order to
tinker with the uptime. Which would inevitably lead us to the question
"Why bother with the uptime?"


On Thu, 18 Nov 2004 16:56:25 +0800, fooler <[EMAIL PROTECTED]> wrote:
> ----- Original Message -----
> From: "Louie Miranda" <[EMAIL PROTECTED]>
> To: "Philippine Linux Users Group Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 18, 2004 4:05 PM
> Subject: Re: [plug] linux uptime
> 
> > tapos to write sa cmos use the command hwclock --systohc
> 
> i think you are confuse between hardware clock, system clock and uptime....
> 
> when your pc is turn off, your hardware clock (also known as real time
> clock, cmos clock or bios clock) is always ticking until the cmos battery is
> run out of power... when you boot up, linux will update its system clock
> from the hardware clock only once...
> 
> after that, linux kernel also initialiaze its internal variable named
> *jiffies* to *zero* and incremented 100 times per second or every 10
> milliseconds when the value of HZ is 100 by a clock interrupt... uptime is
> based on jiffies divided by HZ.... as you can see, uptime has nothing to do
> with the hardware clock nor with the system clock...
> 
> fooler.
> 
> 
> 
> 
> --
> Philippine Linux Users' Group (PLUG) Mailing List
> [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
> Official Website: http://plug.linux.org.ph
> Searchable Archives: http://marc.free.net.ph
> .
> To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
> .
> Are you a Linux newbie? To join the newbie list, go to
> http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
>
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to