Re: Linux box reboots some times without reasons

From: Unruh (
Date: 10/28/05

Date: 28 Oct 2005 00:39:35 GMT

ibuprofin@painkiller.example.tld (Moe Trin) writes:

>In the Usenet newsgroup comp.os.linux.misc, in article
><djp6q8$8l3$>, Unruh wrote:

>>(Moe Trin) writes:

>>>One solution that might work is to change the above script to
>>>while /bin/true
>>>ps auxww >>/var/tmp/ps1
>>>sleep 10
>>>ps auxww >>/var/tmp/ps2
>>>sleep 10
>>Not sure at all why this would be better.

>You are not overwriting the "latest" data. With your original scheme,
>a "failure" (power, RAM, what-ever) occurring/detected between the
>'date' command, and the 'ps' results in /tmp/ps1 containing the date, and
>nothing else. Great for pin-pointing when the failure occurred, but not so
>great for troubleshooting.

True, although the chances that the crash occured in the millisec between
the date command and the ps command is not something I would worry about.
The problem of the cache not being written out is much more worrying.
I suppose if you ran this as root, you could always put a
at the end of the write and before the "sleep 10" would at least get rid
of the kernel cache.

>>I suppose doing
>>ps auxww>>/var/tmp/ps1
>>cat /var/tmp/ps1>/dev/null
>>would make sure that ps1 got flushed out because of the copy.

>Depends on the caching algorithm - that 'read' would likely _come_ from
>cache, but it wouldn't force the write all the way (kernel cache, the
>possible drive controller cache, and finally the cache on the disk).

> Old guy

Relevant Pages

  • Re: svchost consumes 100% of CPU on startup
    ... You can purge the DNS Resolver cache. ... the contents of the DNS client resolver cache. ... Open a command prompt... ... Type or paste this in the command prompt window: ...
  • Re: Total beginners question
    ... Cache seems to be the "Unifier"? ... use the Cache Explorer to import the routines, and the I use the Cache ... command has no arguments. ... MUMPS programmers usually export these files at users' terminals back ...
  • Re: 2.6.0, cdrom still showing directories after being erased
    ... There's no command to invalidate read cache, ... of the SYNC_CACHE command to flush dirty data to media (which is what LG ... send the line "unsubscribe linux-kernel" in ...
  • Re: 3990-6 Cache
    ... The EMC Host Component command to enter would be "command-characterSQ ... discovered the disk array at startup and replace the "cuu" with a valid UCB ... Subject: 3990-6 Cache ... SUBSYSTEM STORAGE NONVOLATILE STORAGE ...
  • Re: SATA exceptions with 2.6.20-rc5
    ... with 2.6.20-rcI see SATA exceptions quite ... SCSI device sda: write cache: enabled, read cache: enabled, doesn't ... That's not a DMA-mapped command, so it wouldn't go through the ADMA ... Bi-section led to commit 249e83fe839 which makes absolutely no sense to ...