Bug 712341

Summary: FIXED_IN_GIT: 'Low memory' reported on 6GB RAM machine by 'systemd-readahead-collect'
Product: [Fedora] Fedora Reporter: Bert DeKnuydt <Bert.Deknuydt>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: harald, johannbg, lpoetter, metherid, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-26-3.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-15 23:52:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bert DeKnuydt 2011-06-10 11:06:29 UTC
Description of problem:

Systemd's readahead reports low memory on 32bit machines with 6GB RAM

Version-Release number of selected component (if applicable):

systemd-26-2.fc15.i686

How reproducible:

Always

Steps to Reproduce:
1. boot a 32bit machine with enough RAM
2. dmesg | grep 'low memory'
3.
  
Actual results:

Jun 10 12:33:03 xanadu kernel: [    9.429340] systemd-readahead-collect[452]: Disabling readahead collector due to low memory.

Expected results:

<nothing>

Additional info:

I guess a cast of some kind is needed in enough_ram(void) in readahead-common.c.

Comment 1 Michal Schmidt 2011-06-10 11:12:40 UTC
Thanks for the report.

The code
        assert_se(sysinfo(&si) >= 0);   
        return si.totalram > 127 * 1024*1024;

fails to take into account that

   the sizes are given as multiples of mem_unit bytes
    -- man sysinfo

Comment 4 Fedora Update System 2011-06-13 00:00:36 UTC
systemd-26-3.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/systemd-26-3.fc15

Comment 5 Fedora Update System 2011-06-15 05:35:26 UTC
Package systemd-26-3.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-26-3.fc15'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/systemd-26-3.fc15
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-06-15 23:52:24 UTC
systemd-26-3.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.