Bug 712341 - FIXED_IN_GIT: 'Low memory' reported on 6GB RAM machine by 'systemd-readahead-collect'
Summary: FIXED_IN_GIT: 'Low memory' reported on 6GB RAM machine by 'systemd-readahead-...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-10 11:06 UTC by Bert DeKnuydt
Modified: 2011-06-15 23:52 UTC (History)
7 users (show)

Fixed In Version: systemd-26-3.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-15 23:52:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.