* vballoon: page allocation failure. order:0 -> Kernel panic
@ 2009-02-24 11:39 Tomasz Chmielewski
2009-02-24 12:28 ` Avi Kivity
0 siblings, 1 reply; 4+ messages in thread
From: Tomasz Chmielewski @ 2009-02-24 11:39 UTC (permalink / raw)
To: kvm@vger.kernel.org
I'm trying to use ballooning with kvm-83.
Although I'm able to limit the guest's memory, when I try to increase it right after that, I get "vballoon: page allocation failure. order:0" followed by a kernel panic.
Is it expected?
The guest is running Debian Lenny with 2.6.26 kernel. It had initially 256 MB memory.
I used:
qm> balloon 200
qm> balloon 220
in Qemu monitor.
moodle1:~# free
total used free shared buffers cached
Mem: 256584 43816 212768 0 2956 25640
-/+ buffers/cache: 15220 241364
Swap: 0 0 0
moodle1:~# free
total used free shared buffers cached
Mem: 199240 43712 155528 0 2956 25640
-/+ buffers/cache: 15116 184124
Swap: 0 0 0
moodle1:~# [ 87.268105] vballoon: page allocation failure. order:0, mode:0x210d2
[ 87.271481] Pid: 1165, comm: vballoon Not tainted 2.6.26-1-486 #1
[ 87.275299] [<c014ecab>] __alloc_pages_internal+0x318/0x32c
[ 87.280857] [<c014eccb>] __alloc_pages+0x7/0x9
[ 87.283704] [<d082b2c4>] balloon+0x11d/0x1ec [virtio_balloon]
[ 87.287396] [<c012990b>] autoremove_wake_function+0x0/0x2d
[ 87.290981] [<d082b1a7>] balloon+0x0/0x1ec [virtio_balloon]
[ 87.294587] [<c0129763>] kthread+0x36/0x5b
[ 87.296586] [<c012972d>] kthread+0x0/0x5b
[ 87.299292] [<c0104937>] kernel_thread_helper+0x7/0x10
[ 87.302704] =======================
[ 87.305000] Mem-info:
[ 87.306478] DMA per-cpu:
[ 87.308151] CPU 0: hi: 0, btch: 1 usd: 0
[ 87.311225] Normal per-cpu:
[ 87.313013] CPU 0: hi: 90, btch: 15 usd: 76
[ 87.316088] Active:1996 inactive:47 dirty:0 writeback:0 unstable:0
[ 87.316090] free:737 slab:929 mapped:1 pagetables:130 bounce:0
[ 87.323723] DMA free:1076kB min:124kB low:152kB high:184kB active:0kB inactive:0kB present:16256kB pages_scanned:0 all_unreclaimable? yes
[ 87.331290] lowmem_reserve[]: 0 238 238
[ 87.334476] Normal free:1872kB min:1908kB low:2384kB high:2860kB active:7984kB inactive:188kB present:243776kB pages_scanned:17871 all_unreclaimable? yes
[ 87.342884] lowmem_reserve[]: 0 0 0
[ 87.345004] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1076kB
[ 87.351565] Normal: 0*4kB 0*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1872kB
[ 87.358302] 47 total pagecache pages
[ 87.360053] Swap cache: add 0, delete 0, find 0/0
[ 87.363034] Free swap = 0kB
[ 87.364844] Total swap = 0kB
[ 87.368045] 65520 pages of RAM
[ 87.370171] 0 pages of HIGHMEM
[ 87.372136] 1374 reserved pages
[ 87.374153] 4746 pages shared
[ 87.376008] 0 pages swap cached
[ 87.378020] 0 pages dirty
[ 87.379643] 0 pages writeback
[ 87.381565] 1 pages mapped
[ 87.383305] 929 pages slab
[ 87.384315] 130 pages pagetables
[ 87.385187] virtio_balloon virtio3: Out of puff! Can't get 256 pages
[ 87.386994] rsyslogd invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0
[ 87.388182] Pid: 1617, comm: rsyslogd Not tainted 2.6.26-1-486 #1
[ 87.389757] [<c014cd5c>] oom_kill_process+0x4a/0x168
[ 87.391097] [<c014d0fa>] out_of_memory+0x133/0x15d
[ 87.393509] [<c014ec29>] __alloc_pages_internal+0x296/0x32c
[ 87.394986] [<c014eccb>] __alloc_pages+0x7/0x9
[ 87.396155] [<c01504d6>] __do_page_cache_readahead+0x6e/0x14a
[ 87.396517] [<c01508d5>] do_page_cache_readahead+0x3d/0x48
[ 87.398034] [<c014c5c3>] filemap_fault+0x13c/0x2fd
[ 87.399366] [<c015474b>] __do_fault+0x42/0x2f2
[ 87.401116] [<c0155c7b>] handle_mm_fault+0x28e/0x5d2
[ 87.402506] [<c019645e>] kmsg_read+0x0/0x36
[ 87.403702] [<c0113b22>] do_page_fault+0x294/0x5ea
[ 87.405159] [<c0166203>] sys_read+0x3c/0x63
[ 87.406322] [<c0166222>] sys_read+0x5b/0x63
[ 87.407486] [<c011388e>] do_page_fault+0x0/0x5ea
[ 87.408781] [<c02a6e1a>] error_code+0x6a/0x70
[ 87.410012] =======================
[ 87.410970] Mem-info:
[ 87.411620] DMA per-cpu:
[ 87.412280] CPU 0: hi: 0, btch: 1 usd: 0
[ 87.413620] Normal per-cpu:
[ 87.414354] CPU 0: hi: 90, btch: 15 usd: 76
[ 87.415692] Active:1996 inactive:47 dirty:0 writeback:0 unstable:0
[ 87.415693] free:737 slab:929 mapped:1 pagetables:130 bounce:0
[ 87.418934] DMA free:1076kB min:124kB low:152kB high:184kB active:0kB inactive:0kB present:16256kB pages_scanned:0 all_unreclaimable? yes
[ 87.422547] lowmem_reserve[]: 0 238 238
[ 87.423723] Normal free:1872kB min:1908kB low:2384kB high:2860kB active:7984kB inactive:188kB present:243776kB pages_scanned:17871 all_unreclaimable? yes
[ 87.427426] lowmem_reserve[]: 0 0 0
[ 87.428494] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1076kB
[ 87.432326] Normal: 0*4kB 0*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1872kB
[ 87.435424] 47 total pagecache pages
[ 87.436051] Swap cache: add 0, delete 0, find 0/0
[ 87.437336] Free swap = 0kB
[ 87.438126] Total swap = 0kB
[ 87.440209] 65520 pages of RAM
[ 87.441295] 0 pages of HIGHMEM
[ 87.442312] 1374 reserved pages
[ 87.443276] 4746 pages shared
[ 87.444172] 0 pages swap cached
[ 87.445106] 0 pages dirty
[ 87.445831] 0 pages writeback
[ 87.446687] 1 pages mapped
[ 87.447441] 929 pages slab
[ 87.448062] 130 pages pagetables
[ 87.449138] Out of memory: kill process 1988 (apache2) score 6305 or a child
[ 87.451256] Killed process 1988 (apache2)
[ 87.772674] rsyslogd invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0
[ 87.774923] Pid: 1617, comm: rsyslogd Not tainted 2.6.26-1-486 #1
[ 87.776717] [<c014cd5c>] oom_kill_process+0x4a/0x168
[ 87.778246] [<c014d0fa>] out_of_memory+0x133/0x15d
[ 87.779741] [<c014ec29>] __alloc_pages_internal+0x296/0x32c
[ 87.781484] [<c014eccb>] __alloc_pages+0x7/0x9
[ 87.782865] [<c01504d6>] __do_page_cache_readahead+0x6e/0x14a
[ 87.784553] [<c01508d5>] do_page_cache_readahead+0x3d/0x48
[ 87.786235] [<c014c5c3>] filemap_fault+0x13c/0x2fd
[ 87.787781] [<c015474b>] __do_fault+0x42/0x2f2
[ 87.789164] [<c0155c7b>] handle_mm_fault+0x28e/0x5d2
[ 87.790719] [<c019645e>] kmsg_read+0x0/0x36
[ 87.792021] [<c0113b22>] do_page_fault+0x294/0x5ea
[ 87.793506] [<c0166203>] sys_read+0x3c/0x63
[ 87.794880] [<c0166222>] sys_read+0x5b/0x63
[ 87.796202] [<c011388e>] do_page_fault+0x0/0x5ea
[ 87.797668] [<c02a6e1a>] error_code+0x6a/0x70
[ 87.799040] =======================
[ 87.800105] Mem-info:
[ 87.800837] DMA per-cpu:
[ 87.801662] CPU 0: hi: 0, btch: 1 usd: 0
[ 87.803184] Normal per-cpu:
[ 87.804088] CPU 0: hi: 90, btch: 15 usd: 77
[ 87.805564] Active:1992 inactive:0 dirty:0 writeback:0 unstable:0
[ 87.805566] free:737 slab:931 mapped:1 pagetables:120 bounce:0
[ 87.809098] DMA free:1076kB min:124kB low:152kB high:184kB active:0kB inactive:0kB present:16256kB pages_scanned:0 all_unreclaimable? yes
[ 87.812652] lowmem_reserve[]: 0 238 238
[ 87.814038] Normal free:1872kB min:1908kB low:2384kB high:2860kB active:7968kB inactive:0kB present:243776kB pages_scanned:12403 all_unreclaimable? yes
[ 87.818005] lowmem_reserve[]: 0 0 0
[ 87.819190] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1076kB
[ 87.823256] Normal: 0*4kB 0*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1872kB
[ 87.826713] 47 total pagecache pages
[ 87.827803] Swap cache: add 0, delete 0, find 0/0
[ 87.829343] Free swap = 0kB
[ 87.830201] Total swap = 0kB
[ 87.832104] 65520 pages of RAM
[ 87.833118] 0 pages of HIGHMEM
[ 87.833981] 1374 reserved pages
[ 87.834925] 3802 pages shared
[ 87.835834] 0 pages swap cached
[ 87.836778] 0 pages dirty
[ 87.837551] 0 pages writeback
[ 87.838483] 1 pages mapped
[ 87.839375] 931 pages slab
[ 87.840046] 120 pages pagetables
[ 87.841006] Out of memory: kill process 1989 (apache2) score 6305 or a child
[ 87.843176] Killed process 1989 (apache2)
[ 87.944714] vballoon: page allocation failure. order:0, mode:0x210d2
[ 87.946415] Pid: 1165, comm: vballoon Not tainted 2.6.26-1-486 #1
[ 87.948019] [<c014ecab>] __alloc_pages_internal+0x318/0x32c
[ 87.949632] [<c014eccb>] __alloc_pages+0x7/0x9
[ 87.950877] [<d082b2c4>] balloon+0x11d/0x1ec [virtio_balloon]
[ 87.952243] [<c012990b>] autoremove_wake_function+0x0/0x2d
[ 87.953756] [<d082b1a7>] balloon+0x0/0x1ec [virtio_balloon]
[ 87.955321] [<c0129763>] kthread+0x36/0x5b
[ 87.957171] [<c012972d>] kthread+0x0/0x5b
[ 87.959774] [<c0104937>] kernel_thread_helper+0x7/0x10
[ 87.963029] =======================
[ 87.965267] Mem-info:
[ 87.966673] DMA per-cpu:
[ 87.969022] CPU 0: hi: 0, btch: 1 usd: 0
[ 87.971969] Normal per-cpu:
[ 87.973718] CPU 0: hi: 90, btch: 15 usd: 71
[ 87.976669] Active:1894 inactive:47 dirty:0 writeback:0 unstable:0
[ 87.976671] free:737 slab:926 mapped:1 pagetables:110 bounce:0
[ 87.984189] DMA free:1076kB min:124kB low:152kB high:184kB active:0kB inactive:0kB present:16256kB pages_scanned:0 all_unreclaimable? yes
[ 87.991918] lowmem_reserve[]: 0 238 238
[ 87.995760] Normal free:1872kB min:1908kB low:2384kB high:2860kB active:7576kB inactive:188kB present:243776kB pages_scanned:10781 all_unreclaimable? no
[ 88.000681] lowmem_reserve[]: 0 0 0
[ 88.001699] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1076kB
[ 88.004206] Normal: 0*4kB 0*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1872kB
[ 88.007164] 47 total pagecache pages
[ 88.008077] Swap cache: add 0, delete 0, find 0/0
[ 88.008191] Free swap = 0kB
[ 88.008972] Total swap = 0kB
[ 88.011093] 65520 pages of RAM
[ 88.011925] 0 pages of HIGHMEM
[ 88.012759] 1374 reserved pages
[ 88.013570] 2858 pages shared
[ 88.014342] 0 pages swap cached
[ 88.015160] 0 pages dirty
[ 88.015832] 0 pages writeback
[ 88.016619] 1 pages mapped
[ 88.017324] 926 pages slab
[ 88.018026] 110 pages pagetables
[ 88.018843] virtio_balloon virtio3: Out of puff! Can't get 256 pages
[ 88.020140] apache2 invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0
[ 88.022020] Pid: 1955, comm: apache2 Not tainted 2.6.26-1-486 #1
[ 88.023571] [<c014cd5c>] oom_kill_process+0x4a/0x168
[ 88.024930] [<c014d0fa>] out_of_memory+0x133/0x15d
[ 88.026195] [<c014ec29>] __alloc_pages_internal+0x296/0x32c
[ 88.027684] [<c014eccb>] __alloc_pages+0x7/0x9
[ 88.029251] [<c01504d6>] __do_page_cache_readahead+0x6e/0x14a
[ 88.030830] [<c01508d5>] do_page_cache_readahead+0x3d/0x48
[ 88.032500] [<c014c5c3>] filemap_fault+0x13c/0x2fd
[ 88.033845] [<c015474b>] __do_fault+0x42/0x2f2
[ 88.035098] [<c01131ab>] pvclock_clocksource_read+0x4b/0xd0
[ 88.036677] [<c0155c7b>] handle_mm_fault+0x28e/0x5d2
[ 88.038073] [<c011cd9b>] eligible_child+0x5d/0x6e
[ 88.039412] [<c0113b22>] do_page_fault+0x294/0x5ea
[ 88.040814] [<c011388e>] do_page_fault+0x0/0x5ea
[ 88.042090] [<c02a6e1a>] error_code+0x6a/0x70
[ 88.043315] =======================
[ 88.044666] Mem-info:
[ 88.045301] DMA per-cpu:
[ 88.045978] CPU 0: hi: 0, btch: 1 usd: 0
[ 88.047286] Normal per-cpu:
[ 88.048023] CPU 0: hi: 90, btch: 15 usd: 71
[ 88.049388] Active:1894 inactive:47 dirty:0 writeback:0 unstable:0
[ 88.049390] free:737 slab:926 mapped:1 pagetables:110 bounce:0
[ 88.052899] DMA free:1076kB min:124kB low:152kB high:184kB active:0kB inactive:0kB present:16256kB pages_scanned:0 all_unreclaimable? yes
[ 88.056178] lowmem_reserve[]: 0 238 238
[ 88.057380] Normal free:1872kB min:1908kB low:2384kB high:2860kB active:7576kB inactive:188kB present:243776kB pages_scanned:11729 all_unreclaimable? yes
[ 88.061102] lowmem_reserve[]: 0 0 0
[ 88.062192] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1076kB
[ 88.065264] Normal: 0*4kB 0*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1872kB
[ 88.068047] 47 total pagecache pages
[ 88.069069] Swap cache: add 0, delete 0, find 0/0
[ 88.070330] Free swap = 0kB
[ 88.071125] Total swap = 0kB
[ 88.073689] 65520 pages of RAM
[ 88.074596] 0 pages of HIGHMEM
[ 88.075380] 1374 reserved pages
[ 88.076026] 2858 pages shared
[ 88.076889] 0 pages swap cached
[ 88.077741] 0 pages dirty
[ 88.078415] 0 pages writeback
[ 88.079178] 1 pages mapped
[ 88.079881] 926 pages slab
[ 88.080604] 110 pages pagetables
[ 88.081423] Out of memory: kill process 1990 (apache2) score 6305 or a child
[ 88.083208] Killed process 1990 (apache2)
[ 88.320378] vballoon: page allocation failure. order:0, mode:0x210d2
[ 88.322094] Pid: 1165, comm: vballoon Not tainted 2.6.26-1-486 #1
[ 88.323793] [<c014ecab>] __alloc_pages_internal+0x318/0x32c
[ 88.325466] [<c014eccb>] __alloc_pages+0x7/0x9
[ 88.326698] [<d082b2c4>] balloon+0x11d/0x1ec [virtio_balloon]
[ 88.328199] [<c012990b>] autoremove_wake_function+0x0/0x2d
[ 88.329853] [<d082b1a7>] balloon+0x0/0x1ec [virtio_balloon]
[ 88.331394] [<c0129763>] kthread+0x36/0x5b
[ 88.332656] [<c012972d>] kthread+0x0/0x5b
[ 88.333818] [<c0104937>] kernel_thread_helper+0x7/0x10
[ 88.335252] =======================
[ 88.336227] Mem-info:
[ 88.336886] DMA per-cpu:
[ 88.337561] CPU 0: hi: 0, btch: 1 usd: 0
[ 88.338830] Normal per-cpu:
[ 88.339596] CPU 0: hi: 90, btch: 15 usd: 87
[ 88.340915] Active:1890 inactive:0 dirty:0 writeback:0 unstable:0
[ 88.340917] free:739 slab:923 mapped:1 pagetables:100 bounce:0
[ 88.344175] DMA free:1076kB min:124kB low:152kB high:184kB active:0kB inactive:0kB present:16256kB pages_scanned:0 all_unreclaimable? yes
[ 88.347465] lowmem_reserve[]: 0 238 238
[ 88.351500] Normal free:1880kB min:1908kB low:2384kB high:2860kB active:7560kB inactive:0kB present:243776kB pages_scanned:10843 all_unreclaimable? no
[ 88.352039] lowmem_reserve[]: 0 0 0
[ 88.353136] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1076kB
[ 88.356725] Normal: 2*4kB 0*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1880kB
[ 88.359828] 47 total pagecache pages
[ 88.360830] Swap cache: add 0, delete 0, find 0/0
[ 88.362097] Free swap = 0kB
[ 88.362889] Total swap = 0kB
[ 88.365917] 65520 pages of RAM
[ 88.367991] 0 pages of HIGHMEM
[ 88.369977] 1374 reserved pages
[ 88.371999] 1914 pages shared
[ 88.373927] 0 pages swap cached
[ 88.375966] 0 pages dirty
[ 88.377638] 0 pages writeback
[ 88.379527] 1 pages mapped
[ 88.381289] 923 pages slab
[ 88.382977] 100 pages pagetables
[ 88.385015] virtio_balloon virtio3: Out of puff! Can't get 256 pages
[ 88.389121] apache2 invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0
[ 88.393627] Pid: 1955, comm: apache2 Not tainted 2.6.26-1-486 #1
[ 88.397415] [<c014cd5c>] oom_kill_process+0x4a/0x168
[ 88.400380] [<c014d0fa>] out_of_memory+0x133/0x15d
[ 88.401726] [<c014ec29>] __alloc_pages_internal+0x296/0x32c
[ 88.403223] [<c014eccb>] __alloc_pages+0x7/0x9
[ 88.404381] [<c01504d6>] __do_page_cache_readahead+0x6e/0x14a
[ 88.405970] [<c01508d5>] do_page_cache_readahead+0x3d/0x48
[ 88.407503] [<c014c5c3>] filemap_fault+0x13c/0x2fd
[ 88.408864] [<c015474b>] __do_fault+0x42/0x2f2
[ 88.410109] [<c0155c7b>] handle_mm_fault+0x28e/0x5d2
[ 88.411504] [<c0117149>] default_wake_function+0x0/0x5
[ 88.412995] [<c0113b22>] do_page_fault+0x294/0x5ea
[ 88.414322] [<c011de02>] sys_waitpid+0x13/0x17
[ 88.415555] [<c011388e>] do_page_fault+0x0/0x5ea
[ 88.416901] [<c02a6e1a>] error_code+0x6a/0x70
[ 88.418218] =======================
[ 88.419248] Mem-info:
[ 88.419938] DMA per-cpu:
[ 88.420724] CPU 0: hi: 0, btch: 1 usd: 0
[ 88.422272] Normal per-cpu:
[ 88.423137] CPU 0: hi: 90, btch: 15 usd: 87
[ 88.424638] Active:1843 inactive:47 dirty:0 writeback:0 unstable:0
[ 88.424640] free:739 slab:923 mapped:1 pagetables:100 bounce:0
[ 88.428090] DMA free:1076kB min:124kB low:152kB high:184kB active:0kB inactive:0kB present:16256kB pages_scanned:0 all_unreclaimable? yes
[ 88.431828] lowmem_reserve[]: 0 238 238
[ 88.436195] Normal free:1880kB min:1908kB low:2384kB high:2860kB active:7372kB inactive:188kB present:243776kB pages_scanned:12734 all_unreclaimable? no
[ 88.440140] lowmem_reserve[]: 0 0 0
[ 88.440958] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1076kB
[ 88.444061] Normal: 2*4kB 0*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1880kB
[ 88.447373] 47 total pagecache pages
[ 88.448158] Swap cache: add 0, delete 0, find 0/0
[ 88.448158] Free swap = 0kB
[ 88.448158] Total swap = 0kB
[ 88.450327] 65520 pages of RAM
[ 88.451385] 0 pages of HIGHMEM
[ 88.452850] 1374 reserved pages
[ 88.453780] 1914 pages shared
[ 88.454553] 0 pages swap cached
[ 88.455437] 0 pages dirty
[ 88.456173] 0 pages writeback
[ 88.456946] 1 pages mapped
[ 88.457692] 923 pages slab
[ 88.458513] 100 pages pagetables
[ 88.459506] Out of memory: kill process 1991 (apache2) score 6305 or a child
[ 88.461663] Killed process 1991 (apache2)
[ 88.804221] Out of memory: kill process 1992 (apache2) score 6305 or a child
[ 88.806217] Killed process 1992 (apache2)
[ 88.812323] Out of memory: kill process 1903 (exim4) score 1568 or a child
[ 88.814409] Killed process 1903 (exim4)
[ 89.244135] Out of memory: kill process 1921 (atd) score 512 or a child
[ 89.246032] Killed process 1921 (atd)
[ 89.448095] Out of memory: kill process 1527 (rpc.statd) score 489 or a child
[ 89.450112] Killed process 1527 (rpc.statd)
[ 89.468526] Out of memory: kill process 1516 (portmap) score 473 or a child
[ 89.470706] Killed process 1516 (portmap)
[ 89.772083] Out of memory: kill process 1614 (rsyslogd) score 425 or a child
[ 89.774153] Killed process 1614 (rsyslogd)
[ 92.384184] __ratelimit: 38 messages suppressed
[ 92.385589] vballoon: page allocation failure. order:0, mode:0x210d2
[ 92.387572] Pid: 1165, comm: vballoon Not tainted 2.6.26-1-486 #1
[ 92.389533] [<c014ecab>] __alloc_pages_internal+0x318/0x32c
[ 92.391497] [<c014eccb>] __alloc_pages+0x7/0x9
[ 92.394131] [<d082b2c4>] balloon+0x11d/0x1ec [virtio_balloon]
[ 92.396069] [<c012990b>] autoremove_wake_function+0x0/0x2d
[ 92.397927] [<d082b1a7>] balloon+0x0/0x1ec [virtio_balloon]
[ 92.399792] [<c0129763>] kthread+0x36/0x5b
[ 92.401240] [<c012972d>] kthread+0x0/0x5b
[ 92.402574] [<c0104937>] kernel_thread_helper+0x7/0x10
[ 92.404066] =======================
[ 92.405246] Mem-info:
[ 92.406020] DMA per-cpu:
[ 92.406805] CPU 0: hi: 0, btch: 1 usd: 0
[ 92.408336] Normal per-cpu:
[ 92.409348] CPU 0: hi: 90, btch: 15 usd: 82
[ 92.410935] Active:1636 inactive:0 dirty:0 writeback:0 unstable:0
[ 92.410937] free:734 slab:900 mapped:1 pagetables:63 bounce:0
[ 92.414916] DMA free:1076kB min:124kB low:152kB high:184kB active:0kB inactive:0kB present:16256kB pages_scanned:0 all_unreclaimable? yes
[ 92.418671] lowmem_reserve[]: 0 238 238
[ 92.419889] Normal free:1860kB min:1908kB low:2384kB high:2860kB active:6544kB inactive:0kB present:243776kB pages_scanned:25843 all_unreclaimable? yes
[ 92.424196] lowmem_reserve[]: 0 0 0
[ 92.427630] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1076kB
[ 92.431217] Normal: 1*4kB 0*8kB 2*16kB 1*32kB 0*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1860kB
[ 92.432105] 47 total pagecache pages
[ 92.433267] Swap cache: add 0, delete 0, find 0/0
[ 92.434613] Free swap = 0kB
[ 92.435412] Total swap = 0kB
[ 92.438326] 65520 pages of RAM
[ 92.439243] 0 pages of HIGHMEM
[ 92.440021] 1374 reserved pages
[ 92.441006] 25 pages shared
[ 92.441787] 0 pages swap cached
[ 92.442723] 0 pages dirty
[ 92.443522] 0 pages writeback
[ 92.444232] 1 pages mapped
[ 92.445030] 900 pages slab
[ 92.445774] 63 pages pagetables
[ 93.916584] Out of memory: kill process 1615 (rsyslogd) score 425 or a child
[ 93.918667] Killed process 1615 (rsyslogd)
[ 94.020573] Out of memory: kill process 1617 (rsyslogd) score 425 or a child
[ 94.022626] Killed process 1617 (rsyslogd)
[ 94.580446] Out of memory: kill process 1955 (apache2) score 394 or a child
[ 94.582517] Killed process 1955 (apache2)
[ 97.424254] __ratelimit: 42 messages suppressed
[ 97.425583] vballoon: page allocation failure. order:0, mode:0x210d2
[ 97.427338] Pid: 1165, comm: vballoon Not tainted 2.6.26-1-486 #1
[ 97.429069] [<c014ecab>] __alloc_pages_internal+0x318/0x32c
[ 97.430752] [<c014eccb>] __alloc_pages+0x7/0x9
[ 97.432072] [<d082b2c4>] balloon+0x11d/0x1ec [virtio_balloon]
[ 97.434031] [<c012990b>] autoremove_wake_function+0x0/0x2d
[ 97.435748] [<d082b1a7>] balloon+0x0/0x1ec [virtio_balloon]
[ 97.437673] [<c0129763>] kthread+0x36/0x5b
[ 97.438907] [<c012972d>] kthread+0x0/0x5b
[ 97.440102] [<c0104937>] kernel_thread_helper+0x7/0x10
[ 97.441709] =======================
[ 97.442709] Mem-info:
[ 97.443387] DMA per-cpu:
[ 97.444064] CPU 0: hi: 0, btch: 1 usd: 0
[ 97.445487] Normal per-cpu:
[ 97.446206] CPU 0: hi: 90, btch: 15 usd: 85
[ 97.447608] Active:484 inactive:32 dirty:0 writeback:0 unstable:0
[ 97.447610] free:735 slab:884 mapped:1 pagetables:47 bounce:0
[ 97.450941] DMA free:1076kB min:124kB low:152kB high:184kB active:0kB inactive:0kB present:16256kB pages_scanned:0 all_unreclaimable? yes
[ 97.454508] lowmem_reserve[]: 0 238 238
[ 97.455819] Normal free:1864kB min:1908kB low:2384kB high:2860kB active:1936kB inactive:128kB present:243776kB pages_scanned:4050 all_unreclaimable? yes
[ 97.459578] lowmem_reserve[]: 0 0 0
[ 97.463204] DMA: 1*4kB 0*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1076kB
[ 97.464055] Normal: 2*4kB 0*8kB 0*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1864kB
[ 97.467276] 32 total pagecache pages
[ 97.468036] Swap cache: add 0, delete 0, find 0/0
[ 97.469416] Free swap = 0kB
[ 97.470253] Total swap = 0kB
[ 97.473234] 65520 pages of RAM
[ 97.474196] 0 pages of HIGHMEM
[ 97.475063] 1374 reserved pages
[ 97.475984] 24 pages shared
[ 97.476047] 0 pages swap cached
[ 97.476995] 0 pages dirty
[ 97.477724] 0 pages writeback
[ 97.478574] 1 pages mapped
[ 97.479334] 884 pages slab
[ 97.480145] 47 pages pagetables
[ 99.584881] Out of memory: kill process 1987 (login) score 73 or a child
[ 99.586921] Killed process 1993 (bash)
[ 99.808247] Out of memory: kill process 1941 (cron) score 54 or a child
[ 99.810250] Killed process 1941 (cron)
[ 99.908278] Out of memory: kill process 1987 (login) score 41 or a child
[ 99.910182] Killed process 1987 (login)
[ 100.032241] Out of memory: kill process 1625 (acpid) score 27 or a child
[ 100.034149] Killed process 1625 (acpid)
[ 100.136266] Out of memory: kill process 1972 (getty) score 27 or a child
[ 100.138089] Killed process 1972 (getty)
[ 100.240167] Out of memory: kill process 1975 (getty) score 27 or a child
[ 100.244485] Killed process 1975 (getty)
[ 100.388396] Out of memory: kill process 1978 (getty) score 27 or a child
[ 100.392685] Killed process 1978 (getty)
[ 100.396394] Out of memory: kill process 1981 (getty) score 27 or a child
[ 100.398430] Killed process 1981 (getty)
[ 100.468414] Out of memory: kill process 1984 (getty) score 27 or a child
[ 100.470313] Killed process 1984 (getty)
[ 100.892244] Kernel panic - not syncing: Out of memory and no killable processes...
[ 100.892247]
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: vballoon: page allocation failure. order:0 -> Kernel panic
2009-02-24 11:39 vballoon: page allocation failure. order:0 -> Kernel panic Tomasz Chmielewski
@ 2009-02-24 12:28 ` Avi Kivity
2009-02-25 10:34 ` Tomasz Chmielewski
0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2009-02-24 12:28 UTC (permalink / raw)
To: Tomasz Chmielewski; +Cc: kvm@vger.kernel.org
Tomasz Chmielewski wrote:
> I'm trying to use ballooning with kvm-83.
>
> Although I'm able to limit the guest's memory, when I try to increase
> it right after that, I get "vballoon: page allocation failure.
> order:0" followed by a kernel panic.
>
> Is it expected?
>
> The guest is running Debian Lenny with 2.6.26 kernel. It had initially
> 256 MB memory.
>
It's a guest bug, fixed in 2.6.27 by
commit 532a6086e35fa3b5761e68af36d4e42a550eba15
Author: Anthony Liguori <aliguori@us.ibm.com>
Date: Mon Aug 18 17:15:31 2008 -0500
virtio_balloon: fix towards_target when deflating balloon
Both v and vb->num_pages are u32 and unsigned int respectively. If
v is less
than vb->num_pages (and it is, when deflating the balloon), the
result is a
very large 32-bit number. Since we're returning a s64, instead of
getting the
same negative number we desire, we get a very large positive number.
This handles the case where v < vb->num_pages and ensures we get a
small,
negative, s64 as the result.
Rusty: please push this for 2.6.27-rc4. It's probably appropriate
for the
stable tree too as it will cause an unexpected OOM when ballooning.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (simplified)
diff --git a/drivers/virtio/virtio_balloon.c
b/drivers/virtio/virtio_balloon.c
index bfef604..62eab43 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -158,7 +158,7 @@ static inline s64 towards_target(struct
virtio_balloon *vb)
vb->vdev->config->get(vb->vdev,
offsetof(struct virtio_balloon_config,
num_pages),
&v, sizeof(v));
- return v - vb->num_pages;
+ return (s64)v - vb->num_pages;
}
static void update_balloon_size(struct virtio_balloon *vb)
--
error compiling committee.c: too many arguments to function
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: vballoon: page allocation failure. order:0 -> Kernel panic
2009-02-24 12:28 ` Avi Kivity
@ 2009-02-25 10:34 ` Tomasz Chmielewski
2009-02-25 10:37 ` Avi Kivity
0 siblings, 1 reply; 4+ messages in thread
From: Tomasz Chmielewski @ 2009-02-25 10:34 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm@vger.kernel.org
Avi Kivity schrieb:
> Tomasz Chmielewski wrote:
>> I'm trying to use ballooning with kvm-83.
>>
>> Although I'm able to limit the guest's memory, when I try to increase
>> it right after that, I get "vballoon: page allocation failure.
>> order:0" followed by a kernel panic.
>>
>> Is it expected?
>>
>> The guest is running Debian Lenny with 2.6.26 kernel. It had initially
>> 256 MB memory.
>>
>
> It's a guest bug, fixed in 2.6.27 by
Indeed it works with 2.6.27.
BTW, is it possible to "balloon" to a bigger amount of memory that what
was available when the guest started?
Or is it only possible to "shrink" and "grow" within initial memory
available to the guest, but never "grow" beyond it?
For example, if I start a 2.6.27 guest with 256 MB memory on a kvm-83
host, it is not possible to balloon to 300 MB?
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vballoon: page allocation failure. order:0 -> Kernel panic
2009-02-25 10:34 ` Tomasz Chmielewski
@ 2009-02-25 10:37 ` Avi Kivity
0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-02-25 10:37 UTC (permalink / raw)
To: Tomasz Chmielewski; +Cc: kvm@vger.kernel.org
Tomasz Chmielewski wrote:
>
> BTW, is it possible to "balloon" to a bigger amount of memory that
> what was available when the guest started?
No. The guest won't have its data structures set up to handle the extra
memory.
>
> Or is it only possible to "shrink" and "grow" within initial memory
> available to the guest, but never "grow" beyond it?
>
Right. One workaround is to start the guest with more memory than you
need and immediately balloon it down. Hopefully we'll have memory
hotplug one day so it can be fixed properly.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-25 10:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-24 11:39 vballoon: page allocation failure. order:0 -> Kernel panic Tomasz Chmielewski
2009-02-24 12:28 ` Avi Kivity
2009-02-25 10:34 ` Tomasz Chmielewski
2009-02-25 10:37 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox