LWN.net Logo

IWFM

IWFM

Posted Jul 26, 2007 16:13 UTC (Thu) by dmarti (subscriber, #11625)
In reply to: OpenOffice comes with a "pagein" utility. by corbet
Parent article: Still waiting for swap prefetch

Subjectively, for me, running that shell function seems to get rid of the lag on alt-tab to Firefox, Gimp, or OpenOffice first thing in the morning.

What would be better, for a desktop system, would be a "goodnight" script that would run housekeeping tasks such as updatedb and logrotate, then page back in whatever the user had been working on, then suspend.


(Log in to post comments)

explicit pagein

Posted Jul 27, 2007 22:12 UTC (Fri) by giraffedata (subscriber, #1954) [Link]

To avoid the manual step (either good morning or good night), I run this in a cron job every hour all day. It doesn't matter that the interactive programs get paged in uselessly several times during the night; even if done right in the middle of updatedb, they just get paged right out again and the cost is insignificant.

I also send messages through some response-time-critical daemons regularly, to "loosen them up." I.e. page in executables, anonymous pages, etc.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds