[lkml]   [2001]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: New ac patch???
On 26 Nov 01 at 20:39, Alan Cox wrote:
> > If it will go into mainstream, please change it to config option or
> > something like that. I'm doing
> >
> > for a in /dev/hd[a-z]; do hdparm -Y $a; done
> Thats somewhat undefined in its behaviour. You might also page after the
> hdparm -Y

cat /sbin/halt > /dev/null
cat /bin/sleep > /dev/null
for a in /dev/hd[a-z]; do /sbin/hdparm -Y $a; done
/bin/sleep 1
/sbin/halt -d -f -i -p -h

works without a glitch - libc & co. is already in memory due to running
other code, hdparm is read during first pass through the loop, and cat
brings /sbin/halt into the memory. And as root filesystem is mounted
read-only at that time, there are of course no atime updates pending from
these accesses.
Best regards,
Petr Vandrovec

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.495 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site