xen-4.8 qemu-system-i386 memory lake?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

xen-4.8 qemu-system-i386 memory lake?

nemeth.gabor

Hi All,

I have a problem,

I'm using the xen-4.8 in debian strech and qemu-system-x86,
but I after start my domU, the qemu reserved memory growing steadily.
The first time is 365MB, after 1hour is 796MB, after that more.

my VM config:
builder = "hvm"
device_model_version="qemu-xen"
pae = 1
memory = 8196
vcpus = 4
stdvga = 1
videoram = 16
shadow_memory = 8
name = "win2k8r2"
vif = [
         'bridge=br1, mac=00:16:3E:01:01:01, model=e1000',
       ]
acpi = 1
apic = 1
disk = [
          'phy:/dev/vg0/win2k8r2-system,hda,rw',
        ]
xen_platform_pci = 1
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'
on_xend_stop  = 'shutdown'
boot = "dc"
sdl = 0
usbdevice = 'tablet'
keymap = 'hu'
serial = 'pty'
vnc = 0
localtime=1


A few hours later, the domeU is crash!

What is the problem?

Thank you for the answers.

The syslog is:

Oct  2 17:47:58 xensystem kernel: [85363.583558] vif vif-5-0 vif5.0:  
Guest Rx stalled
Oct  2 17:47:58 xensystem kernel: [85364.640631] qemu-system-i38  
invoked oom-killer:  
gfp_mask=0x24201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=0,  
order=0, oom_score_adj=0
Oct  2 17:47:58 xensystem kernel: [85364.640632] qemu-system-i38  
cpuset=/ mems_allowed=0
Oct  2 17:47:58 xensystem kernel: [85364.640637] CPU: 0 PID: 8560  
Comm: qemu-system-i38 Not tainted 4.9.0-3-amd64 #1 Debian  
4.9.30-2+deb9u5
Oct  2 17:47:58 xensystem kernel: [85364.640637] Hardware name: Dell  
Inc. PowerEdge T310/02P9X9, BIOS 1.4.1 07/19/2010
Oct  2 17:47:58 xensystem kernel: [85364.640639]  0000000000000000  
ffffffff813285b4 ffffc90040cfbc38 ffff8800023f2fc0
Oct  2 17:47:58 xensystem kernel: [85364.640641]  ffffffff811fe020  
0000000000000000 0000000000000000 ffff880003270440
Oct  2 17:47:58 xensystem kernel: [85364.640643]  ffffffff811844e7  
00000042023f3a00 0000000000000000 0000000000000001
Oct  2 17:47:58 xensystem kernel: [85364.640644] Call Trace:
Oct  2 17:47:58 xensystem kernel: [85364.640650]  [<ffffffff813285b4>]  
? dump_stack+0x5c/0x78
Oct  2 17:47:58 xensystem kernel: [85364.640653]  [<ffffffff811fe020>]  
? dump_header+0x78/0x1fd
Oct  2 17:47:58 xensystem kernel: [85364.640655]  [<ffffffff811844e7>]  
? get_page_from_freelist+0x3f7/0xb40
Oct  2 17:47:58 xensystem kernel: [85364.640658]  [<ffffffff8118047a>]  
? oom_kill_process+0x21a/0x3e0
Oct  2 17:47:58 xensystem kernel: [85364.640659]  [<ffffffff811800fd>]  
? oom_badness+0xed/0x170
Oct  2 17:47:58 xensystem kernel: [85364.640660]  [<ffffffff81180911>]  
? out_of_memory+0x111/0x470
Oct  2 17:47:58 xensystem kernel: [85364.640662]  [<ffffffff81185b4f>]  
? __alloc_pages_slowpath+0xb7f/0xbc0
Oct  2 17:47:58 xensystem kernel: [85364.640663]  [<ffffffff81185d8e>]  
? __alloc_pages_nodemask+0x1fe/0x260
Oct  2 17:47:58 xensystem kernel: [85364.640666]  [<ffffffff811d5ec1>]  
? alloc_pages_current+0x91/0x140
Oct  2 17:47:58 xensystem kernel: [85364.640668]  [<ffffffff8117e940>]  
? filemap_fault+0x300/0x5a0
Oct  2 17:47:58 xensystem kernel: [85364.640686]  [<ffffffffc02e5791>]  
? ext4_filemap_fault+0x31/0x50 [ext4]
Oct  2 17:47:58 xensystem kernel: [85364.640688]  [<ffffffff811aeef1>]  
? __do_fault+0x81/0x170
Oct  2 17:47:58 xensystem kernel: [85364.640689]  [<ffffffff811b3671>]  
? handle_mm_fault+0xdd1/0x1350
Oct  2 17:47:58 xensystem kernel: [85364.640691]  [<ffffffff8133543c>]  
? copy_user_generic_string+0x2c/0x40
Oct  2 17:47:58 xensystem kernel: [85364.640693]  [<ffffffff8124e9e4>]  
? eventfd_write+0xc4/0x210
Oct  2 17:47:58 xensystem kernel: [85364.640695]  [<ffffffff8105fd84>]  
? __do_page_fault+0x2a4/0x510
Oct  2 17:47:58 xensystem kernel: [85364.640697]  [<ffffffff81607758>]  
? page_fault+0x28/0x30
Oct  2 17:47:58 xensystem kernel: [85364.640698] Mem-Info:
Oct  2 17:47:58 xensystem kernel: [85364.640702] active_anon:329157  
inactive_anon:110630 isolated_anon:0
Oct  2 17:47:58 xensystem kernel: [85364.640702]  active_file:161  
inactive_file:457 isolated_file:0
Oct  2 17:47:58 xensystem kernel: [85364.640702]  unevictable:13089  
dirty:0 writeback:7 unstable:0
Oct  2 17:47:58 xensystem kernel: [85364.640702]  
slab_reclaimable:2304 slab_unreclaimable:6682
Oct  2 17:47:58 xensystem kernel: [85364.640702]  mapped:3204  
shmem:118 pagetables:6144 bounce:0
Oct  2 17:47:58 xensystem kernel: [85364.640702]  free:3218  
free_pcp:30 free_cma:0
Oct  2 17:47:58 xensystem kernel: [85364.640705] Node 0  
active_anon:1316628kB inactive_anon:442520kB active_file:644kB  
inactive_file:1828kB unevictable:52356kB isolated(anon):0kB  
isolated(file):0kB mapped:12816kB dirty:0kB writeback:28kB shmem:472kB  
shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB  
unstable:0kB pages_scanned:119274 all_unreclaimable? yes
Oct  2 17:47:58 xensystem kernel: [85364.640705] Node 0 DMA  
free:7428kB min:44kB low:56kB high:68kB active_anon:144kB  
inactive_anon:8232kB active_file:0kB inactive_file:0kB unevictable:0kB  
writepending:0kB present:15988kB managed:15904kB mlocked:0kB  
slab_reclaimable:0kB slab_unreclaimable:4kB kernel_stack:0kB  
pagetables:84kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
Oct  2 17:47:58 xensystem kernel: [85364.640708] lowmem_reserve[]: 0  
1846 1846 1846 1846
Oct  2 17:47:58 xensystem kernel: [85364.640711] Node 0 DMA32  
free:5444kB min:5472kB low:7360kB high:9248kB active_anon:1316484kB  
inactive_anon:434288kB active_file:644kB inactive_file:1828kB  
unevictable:52356kB writepending:28kB present:3119716kB  
managed:1915524kB mlocked:52356kB slab_reclaimable:9216kB  
slab_unreclaimable:26724kB kernel_stack:2992kB pagetables:24492kB  
bounce:0kB free_pcp:120kB local_pcp:120kB free_cma:0kB
Oct  2 17:47:58 xensystem kernel: [85364.640714] lowmem_reserve[]: 0 0 0 0 0
Oct  2 17:47:58 xensystem kernel: [85364.640716] Node 0 Normal  
free:0kB min:0kB low:0kB high:0kB active_anon:0kB inactive_anon:0kB  
active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB  
present:1058596kB managed:6312kB mlocked:0kB slab_reclaimable:0kB  
slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB  
free_pcp:0kB local_pcp:0kB free_cma:0kB
Oct  2 17:47:58 xensystem kernel: [85364.640719] lowmem_reserve[]: 0 0 0 0 0
Oct  2 17:47:58 xensystem kernel: [85364.640721] Node 0 DMA: 5*4kB  
(UM) 2*8kB (UM) 2*16kB (UM) 4*32kB (UM) 1*64kB (U) 0*128kB 2*256kB  
(UM) 1*512kB (M) 2*1024kB (UM) 0*2048kB 1*4096kB (E) = 7428kB
Oct  2 17:47:58 xensystem kernel: [85364.640729] Node 0 DMA32: 231*4kB  
(UE) 111*8kB (UE) 31*16kB (UME) 16*32kB (UME) 5*64kB (U) 16*128kB (UM)  
1*256kB (U) 0*512kB 0*1024kB 0*2048kB 0*4096kB = 5444kB
Oct  2 17:47:58 xensystem kernel: [85364.640737] Node 0 Normal: 0*4kB  
0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB  
0*4096kB = 0kB
Oct  2 17:47:58 xensystem kernel: [85364.640742] 3711 total pagecache pages
Oct  2 17:47:58 xensystem kernel: [85364.640743] 122 pages in swap cache
Oct  2 17:47:58 xensystem kernel: [85364.640744] Swap cache stats: add  
6333548, delete 6333426, find 27186/47163
Oct  2 17:47:58 xensystem kernel: [85364.640745] Free swap  = 0kB
Oct  2 17:47:58 xensystem kernel: [85364.640745] Total swap = 8388604kB
Oct  2 17:47:58 xensystem kernel: [85364.640746] 1048575 pages RAM
Oct  2 17:47:58 xensystem kernel: [85364.640746] 0 pages HighMem/MovableOnly
Oct  2 17:47:58 xensystem kernel: [85364.640746] 564140 pages reserved
Oct  2 17:47:58 xensystem kernel: [85364.640747] 0 pages hwpoisoned
Oct  2 17:47:58 xensystem kernel: [85364.640747] [ pid ]   uid  tgid  
total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
Oct  2 17:47:58 xensystem kernel: [85364.640751] [  882]     0   882    
  14177      135      25       3       96             0 systemd-journal
Oct  2 17:47:58 xensystem kernel: [85364.640753] [  892]     0   892    
  45233      561      21       3       75             0 lvmetad
Oct  2 17:47:58 xensystem kernel: [85364.640754] [  903]     0   903    
  11370      196      23       3      184         -1000 systemd-udevd
Oct  2 17:47:58 xensystem kernel: [85364.640756] [  950]     0   950    
  91189     4731      33       3        0         -1000 dmeventd
Oct  2 17:47:58 xensystem kernel: [85364.640758] [ 1160]     0  1160    
   1744       36      10       3       26             0 mdadm
Oct  2 17:47:58 xensystem kernel: [85364.640759] [ 1241]     0  1241    
  11625      215      27       3      121             0 systemd-logind
Oct  2 17:47:58 xensystem kernel: [85364.640761] [ 1244]   105  1244    
  11283      378      25       3      123          -900 dbus-daemon
Oct  2 17:47:58 xensystem kernel: [85364.640762] [ 1268]     0  1268    
   7416      349      19       3       50             0 cron
Oct  2 17:47:58 xensystem kernel: [85364.640764] [ 1269]     0  1269    
  62529       59      28       3      180             0 rsyslogd
Oct  2 17:47:58 xensystem kernel: [85364.640765] [ 1300]     0  1300    
   3186        0      11       3       42             0 mcelog
Oct  2 17:47:58 xensystem kernel: [85364.640767] [ 1323]     0  1323    
   5304      316      15       3      128             0 xenstored
Oct  2 17:47:58 xensystem kernel: [85364.640768] [ 1325]     0  1325    
  17486      309      39       4      163         -1000 sshd
Oct  2 17:47:58 xensystem kernel: [85364.640770] [ 1335]   111  1335    
  18836      312      40       3      187             0 zabbix_agentd
Oct  2 17:47:58 xensystem kernel: [85364.640771] [ 1337]   111  1337    
  18836       55      38       3      174             0 zabbix_agentd
Oct  2 17:47:58 xensystem kernel: [85364.640772] [ 1338]   111  1338    
  18836        2      39       3      190             0 zabbix_agentd
Oct  2 17:47:58 xensystem kernel: [85364.640774] [ 1339]   111  1339    
  18836        2      39       3      190             0 zabbix_agentd
Oct  2 17:47:58 xensystem kernel: [85364.640775] [ 1340]   111  1340    
  18836        2      39       3      190             0 zabbix_agentd
Oct  2 17:47:58 xensystem kernel: [85364.640777] [ 1341]   111  1341    
  19884       36      42       3      172             0 zabbix_agentd
Oct  2 17:47:58 xensystem kernel: [85364.640778] [ 1343]     0  1343    
  24661     1572      53       3     9952             0 fusioninventory
Oct  2 17:47:58 xensystem kernel: [85364.640779] [ 1344]     0  1344    
   7106      487      20       3      103             0 vsftpd
Oct  2 17:47:58 xensystem kernel: [85364.640781] [ 1350]     0  1350    
   3578      342      12       3       39             0 agetty
Oct  2 17:47:58 xensystem kernel: [85364.640782] [ 1362]   107  1362    
  25516      240      24       3      106             0 ntpd
Oct  2 17:47:58 xensystem kernel: [85364.640783] [ 1403]     0  1403    
   7349      419      17       3      129             0 monitor
Oct  2 17:47:58 xensystem kernel: [85364.640785] [ 1404]     0  1404    
   7435     1029      18       3      128             0 ovsdb-server
Oct  2 17:47:58 xensystem kernel: [85364.640786] [ 1411]     0  1411    
  24790      308      23       3      100             0 xenconsoled
Oct  2 17:47:58 xensystem kernel: [85364.640788] [ 1423]     0  1423    
   7970      452      17       3       94             0 monitor
Oct  2 17:47:58 xensystem kernel: [85364.640789] [ 1424]     0  1424    
  63404     8842      36       3        0             0 ovs-vswitchd
Oct  2 17:47:58 xensystem kernel: [85364.640791] [ 1481]     0  1481    
  77967      393     105       3     1030             0 qemu-system-i38
Oct  2 17:47:58 xensystem kernel: [85364.640792] [ 1815]     0  1815    
  26889      263      28       3      397             0 xl
Oct  2 17:47:58 xensystem kernel: [85364.640794] [ 5913]     0  5913    
  14175      544      32       3      189             0 systemd
Oct  2 17:47:58 xensystem kernel: [85364.640795] [ 5914]     0  5914    
  20783       21      42       3      528             0 (sd-pam)
Oct  2 17:47:58 xensystem kernel: [85364.640797] [ 6737]     0  6737    
   3634      253      12       3       31             0 agetty
Oct  2 17:47:58 xensystem kernel: [85364.640798] [ 8560]     0  8560  
2688279   437958    5131      13  2080916             0 qemu-system-i38
Oct  2 17:47:58 xensystem kernel: [85364.640799] [ 8812]     0  8812    
  28731      310      29       3      128             0 xl
Oct  2 17:47:58 xensystem kernel: [85364.640801] Out of memory: Kill  
process 8560 (qemu-system-i38) score 948 or sacrifice child
Oct  2 17:47:58 xensystem kernel: [85364.640845] Killed process 8560  
(qemu-system-i38) total-vm:10753116kB, anon-rss:1748768kB,  
file-rss:3064kB, shmem-rss:0kB
Oct  2 17:47:58 xensystem kernel: [85364.651948] device vif5.1-emu  
left promiscuous mode
Oct  2 17:47:58 xensystem kernel: [85364.664016] device vif5.0-emu  
left promiscuous mode
Oct  2 17:47:59 xensystem kernel: [85365.525137] oom_reaper: reaped  
process 8560 (qemu-system-i38), now anon-rss:8kB, file-rss:0kB,  
shmem-rss:0kB


_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xen.org/xen-users