* Refuse to run readahead on a memory starved system (<512MB) * Run with low priority (ionice) * Don't preload database files, which make things slower (Full read vs. application seek) For exaple kmods which read RPM database
move datafiles to /var
readahead-1.4.8 with ionice, more excluded directories and does not run on memory < 384MB
Created attachment 362779 [details] patch to ignore large files (In reply to comment #2) > readahead-1.4.8 with ionice, more excluded directories and does not run on > memory < 384MB Please excuse me for replying to this old report, but why do you think that not running readahead when the machine doesn't have more than 348MBs is "helpful"? At the Debian package I've reverted that change since it doesn't make sense to me, as the amount of memory required to preload the files is directly dependent on what the system loads and on what the user can actually have running at the same time. On several setups, even when not excluding /var I get ~60 when running cat /var/lib/readahead/early.sorted | awk '{sum+=$1/1024/1024}END{print sum}' If I were to place a minimum memory requirement I would say users should at least have 128MB of memory. In any case, I'm attaching a patch I applied to ignore large files (in part so that there's no need to exclude /var).
pushed to upstream git