[laptop-mode] READAHEAD setting is doubled
Bart Samwel
bart at samwel.tk
Tue Jul 15 07:50:39 CEST 2008
Hi Joss,
Joss Winn wrote:
>>> In laptop-mode.conf, I have:
>>>
>>> CONTROL_READAHEAD=1
>>> LM_READAHEAD=3072
>>> NOLM_READAHEAD=128
>>>
>>> However, when I run hdparm /dev/sda I get:
>>>
>>> readahead = 6144 (on)
>>>
>>> Which is exactly double the laptop-mode setting.
>>>
>>> If I change the laptop-mode setting, then sure enough the new hdparm
>>> reading is double whatever the new setting is.
>>>
>>> Why is this?
>> Very simple: the laptop-mode-tools config value is in kilobytes, while
>> hdparm configures these things in sectors of 512 bytes each. :-)
>>
>
> Ah, I see. Would it be worth adding this comment in the
> laptop-mode.config file, just so it's clear to fools like me? ;-)
The config file already says that it's in kilobytes and doesn't mention
hdparm, so that's not the place, I think. But I have added it to the FAQ:
http://samwel.tk/laptop_mode/faq
Cheers,
Bart
More information about the laptop-mode
mailing list