Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366745 - mount.nfs (net-fs/nfs-utils-1.2.3-r1) generates page allocation failure
Summary: mount.nfs (net-fs/nfs-utils-1.2.3-r1) generates page allocation failure
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal critical (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 12:10 UTC by Gerhard Hintermayer
Modified: 2011-07-10 15:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Output from dmesg (KERNEL_ERROR,4.02 KB, text/plain)
2011-05-10 12:12 UTC, Gerhard Hintermayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Hintermayer 2011-05-10 12:10:25 UTC
when mounting a nfs share I got following entry showing up in dmesg (sorry the error message at the shell prompt was scrolled off the terminal by dmesg)
After that I retried the mount command, this time it worked.


Reproducible: Sometimes

Steps to Reproduce:
1. mount a nfs share (this was the first nfs mount after a reboot)
2. see the page allocation error
3.
Actual Results:  
page allocation error

Expected Results:  
no page allocation error. setting severity to critical since I do not know the further impact on the kernel.

Portage 2.1.9.42 (default/linux/x86/10.0/desktop, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.37-gentoo-r4-i686-Intel-R-_Xeon-R-_CPU_5130_@_2.00GHz-with-gentoo-1.12.14
Timestamp of tree: Mon, 09 May 2011 08:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13::<unknown repository>, 2.65-r1
sys-devel/automake:  1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2 --load-average=1.3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif extras fam firefox flac fortran gd gdbm gdu gif gnutls gpm gtk gtk2 iconv jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl php png policykit postgresi ppds pppd python qt3support qt4 readline sdl session spell sqlite ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access auth auth_basic auth_dbm auth_anon auth_digest authz_groupfile alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so filter authz_host vhost_alias authn_file authz_user" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gerhard Hintermayer 2011-05-10 12:12:42 UTC
Created attachment 272725 [details]
Output from dmesg

the output of dmesg
Comment 2 Gerhard Hintermayer 2011-05-10 12:22:17 UTC
the corresponding line in /etc/fstab is:
aprol1:/srv/backup /srv/backup nfs auto 0 0

the command for mounting was:
mount /srv/backup
Comment 3 Gerhard Hintermayer 2011-05-10 13:00:28 UTC
any advice on how to proceed on this (production) server is appreciated. I'm running a webserver and a postgresql server on it, should I reboot, to be in a clean memory state or can I simply ignore the error message ?
Comment 4 Stratos Psomadakis (RETIRED) gentoo-dev 2011-05-10 14:09:57 UTC
Can you tell us the version of the last working kernel? Did you do a kernel upgrade recently (and/or nfs-utils)?
Comment 5 Gerhard Hintermayer 2011-05-10 14:23:38 UTC
(In reply to comment #4)
> Can you tell us the version of the last working kernel? Did you do a kernel
> upgrade recently (and/or nfs-utils)?

I did both a kernel update and an rebuild of nfs-utils on the weekend of may 1st.
The kernel I had before was 2.6.36-gentoo-r8, the nfs-utils were the same before, the reinstall was due to some broken dependancies.

I don't know if the error was'nt already in 2.6.36-gentoo-r8, because I discovered that automountig the nfs share at startup did not work since I rebooted the machine in march for upgrading to 2.6.36-gentoo-r8.
Comment 6 Stratos Psomadakis (RETIRED) gentoo-dev 2011-05-11 10:18:25 UTC
Ok, but you don't get the page alloc error when booting a 2.6.36 kernel, right?

Btw, can you post the output of cat /proc/sys/vm/min_free_kbytes ?
If it's less than 10M(10k kbytes actually), can you set it to something like 16M or 64M?

Probably this isn't a critical bug. I think that the kernel tries to do a somewhat big allocation (order=4) and the VM subsystem temporarily can't find enough available memory to allocate. Thus you get the page alloc error, and then when you remount, it works. 

Try setting min_free_kbytes to 16M/64M, and hopefully it'll fix your problem.
Comment 7 Gerhard Hintermayer 2011-05-11 10:37:47 UTC
(In reply to comment #6)
> Ok, but you don't get the page alloc error when booting a 2.6.36 kernel, right?

I don't know, since automounting the nfs dir did not work at the last server reboot using. I have to change the fstab entry to using the IP of the remote host, since nfsmount script lacks a "need dns" :-( 

> Btw, can you post the output of cat /proc/sys/vm/min_free_kbytes ?
> If it's less than 10M(10k kbytes actually), can you set it to something like
> 16M or 64M?
>

3798

> Probably this isn't a critical bug. I think that the kernel tries to do a
> somewhat big allocation (order=4) and the VM subsystem temporarily can't find
> enough available memory to allocate. Thus you get the page alloc error, and
> then when you remount, it works. 
> 
> Try setting min_free_kbytes to 16M/64M, and hopefully it'll fix your problem.

I'll try increasing min_free_kbytes.
Thanks.
Comment 8 Mike Pagano gentoo-dev 2011-06-07 18:21:37 UTC
Any updates to report here?