Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 558281 - F13: KSM init script error [/sys/kernel/mm/ksm/max_kernel_pages: No such file or directory]
Summary: F13: KSM init script error [/sys/kernel/mm/ksm/max_kernel_pages: No such file...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Justin M. Forbes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 627425 (view as bug list)
Depends On:
Blocks: F13VirtTarget 561907
TreeView+ depends on / blocked
 
Reported: 2010-01-24 17:14 UTC by Gianluca Varisco
Modified: 2015-10-26 01:06 UTC (History)
25 users (show)

Fixed In Version: qemu-0.13.0-1.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 561907 (view as bug list)
Environment:
Last Closed: 2011-03-19 10:28:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
This is patch for suppress error message (deleted)
2010-09-10 04:34 UTC, Hajime Taira
no flags Details

Description Gianluca Varisco 2010-01-24 17:14:04 UTC
Description of problem:

Starting ksm: /etc/rc5.d/S84ksm: line 44: /sys/kernel/mm/ksm/max_kernel_pages: No such file or directory
                                                           [  OK  ]

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

qemu-common-0.12.1.2-3.fc13.x86_64
kernel-2.6.33-0.20.rc5.git0.fc13.x86_64

How reproducible:

The message is displayed when the system boots up [ /var/log/boot.log ].

# ls /sys/kernel/mm/ksm/
full_scans  pages_shared  pages_sharing  pages_to_scan  pages_unshared  pages_volatile  run  sleep_millisecs

Comment 1 Justin M. Forbes 2010-02-04 16:39:58 UTC
Now that the pages are swappable in 2.6.33 kernels, max_kernel_pages is no longer necessary. The ksm init script has been modified to only change /sys/kernel/mm/ksm/max_kernel_pages if it already exists.  This should work with both F12 and future rawhide kernels.

Comment 2 Ralf Corsepius 2010-08-25 10:28:03 UTC
Bug is still present in FC13.

From my /var/log/boot.log:
...
Starting ksm: /etc/rc5.d/S84ksm: line 44: /sys/kernel/mm/ksm/max_kernel_pages: No such file or directory
...

> The ksm init script has been modified to only change
> /sys/kernel/mm/ksm/max_kernel_pages if it already exists. 

This apparently has not happened:
- From /etc/init.d/ksm on FC13:
...
start() {
    echo -n $"Starting $prog: "
    KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
    echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}
...

- Same in Fedora's git. Even master (f15) still carries the broken init script

Comment 3 Robert Story 2010-08-25 20:28:17 UTC
yep, I'm seeing it on my f13 box too...

Comment 4 Mick Smothers 2010-08-29 07:19:44 UTC
I just updated from f12 to f13 (x86_64) and also see the message.

Comment 5 Charles Butterfield 2010-08-30 05:35:32 UTC
Me too, F13, package qemu-common.x86_64 version 2:0.12.5-1.fc13

Comment 6 Justin M. Forbes 2010-09-02 16:24:04 UTC
I apologize for that, it seems the update got applied to F-12 and did not get applied upstream.  This change has now been committed upstream, and will be present in the next qemu builds for all releases.

Comment 7 Justin M. Forbes 2010-09-02 16:40:03 UTC
*** Bug 627425 has been marked as a duplicate of this bug. ***

Comment 8 Hajime Taira 2010-09-10 04:34:13 UTC
Created attachment 446426 [details]
This is patch for suppress error message

Comment 9 Fedora Update System 2010-09-21 22:22:42 UTC
spice-0.6.0-1.fc14,spice-protocol-0.6.0-1.fc14,qemu-0.13.0-0.7.rc1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/spice-0.6.0-1.fc14,spice-protocol-0.6.0-1.fc14,qemu-0.13.0-0.7.rc1.fc14

Comment 10 Fedora Update System 2010-09-22 18:42:42 UTC
spice-0.6.0-1.fc14, spice-protocol-0.6.0-1.fc14, qemu-0.13.0-0.7.rc1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update spice spice-protocol qemu'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/spice-0.6.0-1.fc14,spice-protocol-0.6.0-1.fc14,qemu-0.13.0-0.7.rc1.fc14

Comment 11 Fedora Update System 2010-09-30 06:10:22 UTC
spice-0.6.0-1.fc14, spice-protocol-0.6.0-1.fc14, qemu-0.13.0-0.7.rc1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Julian Sikorski 2010-09-30 06:16:45 UTC
Can we get an update for F-13 too, please?

Comment 13 Rob Riggs 2010-10-02 00:22:08 UTC
Please reopen.  This bug still exists in Fedora 13.

Comment 14 Carl G. 2010-10-02 15:39:37 UTC
---

Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 15 Alexander Hunt 2010-10-09 08:33:31 UTC
Hi, What Rob Riggs said. 
Info:
I Installed some fuse (filesystem in userspace) options yesterday which installed qemu-common-2:0.12.5.1.fc13.x86_64 as a dependency. My machine is now having this issue also (although other than the message being in the boot log, it doesn't seem to be causing any problems for me so far). I don't have any spice or spice-protocol files installed.

Fedora 2.6.34.7-56.fc13.x86_64
Gnome 2.30.0
MacBook 2.1

br,
alex

Comment 16 Fedora Update System 2011-03-03 23:37:13 UTC
Package qemu-0.13.0-1.fc13:
* should fix your issue,
* was pushed to the Fedora 13 updates-testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qemu-0.13.0-1.fc13'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/qemu-0.13.0-1.fc13
then log in and leave karma (feedback).

Comment 17 Fedora Update System 2011-03-04 09:59:10 UTC
qemu-0.13.0-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update qemu'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/qemu-0.13.0-1.fc13

Comment 18 Fedora Update System 2011-03-19 10:27:58 UTC
qemu-0.13.0-1.fc13 has been pushed to the Fedora 13 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.