How could I find memory hogging process in Dom0?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

How could I find memory hogging process in Dom0?

Minjun Hong
Hi.
While installing and using Xen on my two PCs, I see that the dom0 is still running out of memory on one PC.
I installed Xen in the same way (with same kernel version and same xen version) on the computers.

But on one computer (labeled A), there is no problem, and on the other computer (labeled B)huge amounts of file page is consumed:

# /proc/meminfo of A
MemTotal:        7545164 kB
MemFree:         6275968 kB
MemAvailable:    7039388 kB
Buffers:           43644 kB
Cached:           937928 kB
SwapCached:            0 kB
Active:           282972 kB
Inactive:         832036 kB
Active(anon):     134564 kB
Inactive(anon):    92720 kB
Active(file):     148408 kB
Inactive(file):   739316 kB

Unevictable:          36 kB
Mlocked:              36 kB
SwapTotal:       3999740 kB
SwapFree:        3999740 kB
Dirty:               148 kB
Writeback:             4 kB
AnonPages:        133472 kB
Mapped:           169608 kB
Shmem:             93848 kB
Slab:              66384 kB
SReclaimable:      37684 kB
SUnreclaim:        28700 kB
KernelStack:        4992 kB
PageTables:        15828 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7772320 kB
Committed_AS:    1461720 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
DirectMap4k:    16639964 kB
DirectMap2M:           0 kB

# /proc/meminfo of B
MemTotal:        7487512 kB
MemFree:          138888 kB
MemAvailable:    6130396 kB
Buffers:          100832 kB
Cached:          6227632 kB
SwapCached:            0 kB
Active:          4613668 kB
Inactive:        2308416 kB
Active(anon):     491464 kB
Inactive(anon):   545104 kB
Active(file):    4122204 kB
Inactive(file):  1763312 kB

Unevictable:         364 kB
Mlocked:             364 kB
SwapTotal:       1999868 kB
SwapFree:        1999868 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        594004 kB
Mapped:           238460 kB
Shmem:            442948 kB
Slab:             320832 kB
SReclaimable:     283608 kB
SUnreclaim:        37224 kB
KernelStack:        7440 kB
PageTables:        29660 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     5743624 kB
Committed_AS:    3780332 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
DirectMap4k:    16635236 kB
DirectMap2M:           0 kB 

The two computers have the same parts except for the CPU (A: Intel i7 7700, B: Intel i7 6700).
I've used 'top' to see which process is using a lot of memory, but there is no process at a glance:

# top of A
 PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
 4640 nickeys    20   0 1333M 95952 27952 S  0.0  1.3  0:00.00 /usr/bin/gnome-software --gapplication-service
 4641 nickeys    20   0 1333M 95952 27952 S  0.0  1.3  0:00.00 /usr/bin/gnome-software --gapplication-service 
 4653 nickeys    20   0 1333M 95952 27952 S  0.0  1.3  0:00.00 /usr/bin/gnome-software --gapplication-service 
 4628 nickeys    20   0 1333M 95952 27952 S 17.4  1.3  0:05.00 /usr/bin/gnome-software --gapplication-service
 4841 nickeys    20   0 1333M 95952 27952 S  0.0  1.3  0:00.00 /usr/bin/gnome-software --gapplication-service 
 4509 nickeys    20   0 1213M 16716 14224 S  0.0  0.2  0:00.00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service 
 4510 nickeys    20   0 1213M 16716 14224 S  0.0  0.2  0:00.00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service 
 4512 nickeys    20   0 1213M 16716 14224 S  0.0  0.2  0:00.00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service 
 4517 nickeys    20   0 1213M 16716 14224 S  0.0  0.2  0:00.00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service 
 4596 nickeys    20   0 1213M 16716 14224 S  0.0  0.2  0:00.00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service 
 4745 nickeys    20   0 1213M 16716 14224 S  0.0  0.2  0:00.00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service 
 4489 nickeys    20   0 1213M 16716 14224 S  0.0  0.2  0:00.03 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
 4671 nickeys    20   0 1176M 56192 47080 S  0.0  0.7  0:00.00 nautilus -n 
 4672 nickeys    20   0 1176M 56192 47080 S  0.0  0.7  0:00.01 nautilus -n 
 4743 nickeys    20   0 1176M 56192 47080 S  0.0  0.7  0:00.00 nautilus -n 
 4759 nickeys    20   0 1176M 56192 47080 S  0.0  0.7  0:00.00 nautilus -n 
 4639 nickeys    20   0 1176M 56192 47080 S  0.0  0.7  0:01.26 nautilus -n
 4576 nickeys    20   0 1117M 94904 58404 S  0.0  1.3  0:00.00 compiz 
 4578 nickeys    20   0 1117M 94904 58404 S  0.0  1.3  0:00.00 compiz 
 4580 nickeys    20   0 1117M 94904 58404 S  0.0  1.3  0:00.04 compiz 
 4800 nickeys    20   0 1117M 94904 58404 S  0.0  1.3  0:00.00 compiz 
 4553 nickeys    20   0 1117M 94904 58404 S  0.0  1.3  0:01.57 compiz
 4675 nickeys    20   0  918M 49860 13484 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 4676 nickeys    20   0  918M 49860 13484 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 4677 nickeys    20   0  918M 49860 13484 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 4678 nickeys    20   0  918M 49860 13484 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 4754 nickeys    20   0  918M 49860 13484 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 4663 nickeys    20   0  918M 49860 13484 S  0.0  0.7  0:00.05 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 4450 nickeys    20   0  907M 33816 25952 S  0.0  0.4  0:00.00 /usr/lib/unity-settings-daemon/unity-settings-daemon 
 4451 nickeys    20   0  907M 33816 25952 S  0.0  0.4  0:00.00 /usr/lib/unity-settings-daemon/unity-settings-daemon 
 4454 nickeys    20   0  907M 33816 25952 S  0.0  0.4  0:00.03 /usr/lib/unity-settings-daemon/unity-settings-daemon 
 4789 nickeys    20   0  907M 33816 25952 S  0.0  0.4  0:00.00 /usr/lib/unity-settings-daemon/unity-settings-daemon 
 4446 nickeys    20   0  907M 33816 25952 S  0.0  0.4  0:00.62 /usr/lib/unity-settings-daemon/unity-settings-daemon
 4613 nickeys    20   0  844M 60032 22120 S  0.0  0.8  0:00.00 /usr/lib/evolution/evolution-calendar-factory 
 4617 nickeys    20   0  844M 60032 22120 S  0.0  0.8  0:00.00 /usr/lib/evolution/evolution-calendar-factory 
 4618 nickeys    20   0  844M 60032 22120 S  0.0  0.8  0:00.00 /usr/lib/evolution/evolution-calendar-factory 
 4619 nickeys    20   0  844M 60032 22120 S  0.0  0.8  0:00.00 /usr/lib/evolution/evolution-calendar-factory 
 4598 nickeys    20   0  844M 60032 22120 S  0.0  0.8  0:00.15 /usr/lib/evolution/evolution-calendar-factory
 4704 nickeys    20   0  829M 17424 14968 S  0.0  0.2  0:00.00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx4665x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Ba
 4705 nickeys    20   0  829M 17424 14968 S  0.0  0.2  0:00.00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx4665x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Ba
 4706 nickeys    20   0  829M 17424 14968 S  0.0  0.2  0:00.00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx4665x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Ba
 4707 nickeys    20   0  829M 17424 14968 S  0.0  0.2  0:00.00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx4665x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Ba
 4708 nickeys    20   0  829M 17424 14968 S  0.0  0.2  0:00.00 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx4665x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Ba
 4702 nickeys    20   0  829M 17424 14968 S  0.0  0.2  0:00.02 /usr/lib/evolution/evolution-addressbook-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx4665x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Ba
 4630 nickeys    20   0  790M 50200 13888 S  0.0  0.7  0:00.03 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 4631 nickeys    20   0  790M 50200 13888 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 4632 nickeys    20   0  790M 50200 13888 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 4633 nickeys    20   0  790M 50200 13888 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 4642 nickeys    20   0  790M 50200 13888 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 4658 nickeys    20   0  790M 50200 13888 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 4661 nickeys    20   0  790M 50200 13888 S  0.0  0.7  0:00.01 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 4627 nickeys    20   0  790M 50200 13888 S  0.0  0.7  0:00.39 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4598x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 4536 nickeys    20   0  720M 11844  9224 S  0.0  0.2  0:00.00 /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service 
 4538 nickeys    20   0  720M 11844  9224 S  0.0  0.2  0:00.00 /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service 
 4540 nickeys    20   0  720M 11844  9224 S  0.0  0.2  0:00.00 /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service 
 4500 nickeys    20   0  720M 11844  9224 S  0.0  0.2  0:00.19 /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
 4467 nickeys    20   0  704M 32408 26548 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service 
 4468 nickeys    20   0  704M 32408 26548 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service 
 4469 nickeys    20   0  704M 32408 26548 S  0.0  0.4  0:00.03 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service 
 4476 nickeys    20   0  704M 32408 26548 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service 
 4460 nickeys    20   0  704M 32408 26548 S  0.0  0.4  0:00.23 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service
 4670 nickeys    20   0  675M 18512 15780 S  0.0  0.2  0:00.00 /usr/lib/evolution/evolution-addressbook-factory 
 4692 nickeys    20   0  675M 18512 15780 S  0.0  0.2  0:00.00 /usr/lib/evolution/evolution-addressbook-factory 
 4693 nickeys    20   0  675M 18512 15780 S  0.0  0.2  0:00.00 /usr/lib/evolution/evolution-addressbook-factory 
 4695 nickeys    20   0  675M 18512 15780 S  0.0  0.2  0:00.00 /usr/lib/evolution/evolution-addressbook-factory 
 4665 nickeys    20   0  675M 18512 15780 S  0.0  0.2  0:00.20 /usr/lib/evolution/evolution-addressbook-factory
 4579 nickeys    20   0  666M 38112 33120 S  0.0  0.5  0:00.00 /usr/lib/x86_64-linux-gnu/hud/hud-service 
 4581 nickeys    20   0  666M 38112 33120 S  0.0  0.5  0:00.00 /usr/lib/x86_64-linux-gnu/hud/hud-service 
 4582 nickeys    20   0  666M 38112 33120 S  0.0  0.5  0:00.01 /usr/lib/x86_64-linux-gnu/hud/hud-service 
 4444 nickeys    20   0  666M 38112 33120 S  0.0  0.5  0:00.18 /usr/lib/x86_64-linux-gnu/hud/hud-service
 4636 nickeys    20   0  649M 33508 28244 S  0.0  0.4  0:00.00 nm-applet 
 4637 nickeys    20   0  649M 33508 28244 S  0.0  0.4  0:00.00 nm-applet 
 4638 nickeys    20   0  649M 33508 28244 S  0.0  0.4  0:00.00 nm-applet 
 4659 nickeys    20   0  649M 33508 28244 S  0.0  0.4  0:00.00 nm-applet

# top of B
1077 root       20   0  476M  108M 88568 S  0.0  1.5  0:00.00 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
 1018 root       20   0  476M  108M 88568 S  6.0  1.5 16:59.46 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
 3766 nickeys    20   0 1332M   98M 27556 S  0.0  1.3  0:00.08 /usr/bin/gnome-software --gapplication-service
 3767 nickeys    20   0 1332M   98M 27556 S  0.0  1.3  0:00.13 /usr/bin/gnome-software --gapplication-service
 3768 nickeys    20   0 1332M   98M 27556 S  0.0  1.3  0:00.01 /usr/bin/gnome-software --gapplication-service
 3741 nickeys    20   0 1332M   98M 27556 S  0.0  1.3  0:08.74 /usr/bin/gnome-software --gapplication-service
 3597 nickeys    20   0 1180M 99784 59072 S  0.0  1.3  0:00.00 compiz
 3623 nickeys    20   0 1180M 99784 59072 S  0.0  1.3  0:00.01 compiz
 3636 nickeys    20   0 1180M 99784 59072 S  0.0  1.3  0:15.45 compiz
 3584 nickeys    20   0 1180M 99784 59072 S  0.0  1.3  2:54.29 compiz
 3774 nickeys    20   0  976M 70248 61100 S  0.0  0.9  0:00.01 nautilus -n
 3775 nickeys    20   0  976M 70248 61100 S  0.0  0.9  0:00.06 nautilus -n
 3807 nickeys    20   0  976M 70248 61100 S  0.0  0.9  0:00.00 nautilus -n
 3744 nickeys    20   0  976M 70248 61100 S  0.0  0.9  0:02.22 nautilus -n
 3670 nickeys    20   0  844M 59908 21980 S  0.0  0.8  0:00.00 /usr/lib/evolution/evolution-calendar-factory
 3671 nickeys    20   0  844M 59908 21980 S  0.0  0.8  0:00.00 /usr/lib/evolution/evolution-calendar-factory
 3672 nickeys    20   0  844M 59908 21980 S  0.0  0.8  0:00.02 /usr/lib/evolution/evolution-calendar-factory
 3673 nickeys    20   0  844M 59908 21980 S  0.0  0.8  0:00.01 /usr/lib/evolution/evolution-calendar-factory
 3654 nickeys    20   0  844M 59908 21980 S  0.0  0.8  0:00.53 /usr/lib/evolution/evolution-calendar-factory
 3677 nickeys    20   0  862M 50244 13576 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 3678 nickeys    20   0  862M 50244 13576 S  0.0  0.7  0:00.01 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 3679 nickeys    20   0  862M 50244 13576 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 3680 nickeys    20   0  862M 50244 13576 S  0.0  0.7  0:00.12 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 3683 nickeys    20   0  862M 50244 13576 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 3685 nickeys    20   0  862M 50244 13576 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 3676 nickeys    20   0  862M 50244 13576 S  0.0  0.7  0:00.57 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backe
 3703 nickeys    20   0  846M 50016 13452 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 3704 nickeys    20   0  846M 50016 13452 S  0.0  0.7  0:00.02 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 3705 nickeys    20   0  846M 50016 13452 S  0.0  0.7  0:00.00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 3706 nickeys    20   0  846M 50016 13452 S  0.0  0.7  0:00.12 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 3690 nickeys    20   0  846M 50016 13452 S  0.0  0.7  0:00.59 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory local --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx3654x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/
 3868 nickeys    20   0  671M 47960 34188 S  0.0  0.6  0:00.00 /usr/lib/gnome-terminal/gnome-terminal-server
 3869 nickeys    20   0  671M 47960 34188 S  0.0  0.6  0:00.00 /usr/lib/gnome-terminal/gnome-terminal-server
 3870 nickeys    20   0  671M 47960 34188 S  0.0  0.6  0:01.64 /usr/lib/gnome-terminal/gnome-terminal-server
 3867 nickeys    20   0  671M 47960 34188 S  5.3  0.6  1:21.73 /usr/lib/gnome-terminal/gnome-terminal-server
 3546 nickeys    20   0  631M 35980 31140 S  0.0  0.5  0:00.00 /usr/lib/x86_64-linux-gnu/hud/hud-service
 3547 nickeys    20   0  631M 35980 31140 S  0.0  0.5  0:00.00 /usr/lib/x86_64-linux-gnu/hud/hud-service
 3548 nickeys    20   0  631M 35980 31140 S  0.0  0.5  0:00.08 /usr/lib/x86_64-linux-gnu/hud/hud-service
 3519 nickeys    20   0  631M 35980 31140 S  0.0  0.5  0:00.57 /usr/lib/x86_64-linux-gnu/hud/hud-service
 3802 nickeys    20   0  649M 35168 29568 S  0.0  0.5  0:00.00 nm-applet
 3803 nickeys    20   0  649M 35168 29568 S  0.0  0.5  0:00.00 nm-applet
 3804 nickeys    20   0  649M 35168 29568 S  0.0  0.5  0:13.14 nm-applet
 3746 nickeys    20   0  649M 35168 29568 S  0.0  0.5  0:29.26 nm-applet
 3543 nickeys    20   0  696M 32592 25788 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service
 3544 nickeys    20   0  696M 32592 25788 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service
 3545 nickeys    20   0  696M 32592 25788 S  0.0  0.4  0:23.42 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service
 3534 nickeys    20   0  696M 32592 25788 S  0.0  0.4  0:43.09 /usr/lib/x86_64-linux-gnu/unity/unity-panel-service
 3796 root       20   0  614M 32336  8932 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/fwupd/fwupd
 3843 root       20   0  614M 32336  8932 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/fwupd/fwupd
 3844 root       20   0  614M 32336  8932 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/fwupd/fwupd
 3845 root       20   0  614M 32336  8932 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/fwupd/fwupd
 3846 root       20   0  614M 32336  8932 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/fwupd/fwupd
 3847 root       20   0  614M 32336  8932 S  0.0  0.4  0:00.02 /usr/lib/x86_64-linux-gnu/fwupd/fwupd
 3795 root       20   0  614M 32336  8932 S  0.0  0.4  0:02.05 /usr/lib/x86_64-linux-gnu/fwupd/fwupd
 4424 nickeys    20   0  479M 31504 26600 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/notify-osd
 4425 nickeys    20   0  479M 31504 26600 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/notify-osd
 4426 nickeys    20   0  479M 31504 26600 S  0.0  0.4  0:00.00 /usr/lib/x86_64-linux-gnu/notify-osd
 4423 nickeys    20   0  479M 31504 26600 S  0.0  0.4  0:03.54 /usr/lib/x86_64-linux-gnu/notify-osd
 3535 nickeys    20   0  835M 31380 25416 S  0.0  0.4  0:00.01 /usr/lib/unity-settings-daemon/unity-settings-daemon
 3536 nickeys    20   0  835M 31380 25416 S  0.0  0.4  0:00.01 /usr/lib/unity-settings-daemon/unity-settings-daemon
 3537 nickeys    20   0  835M 31380 25416 S  0.0  0.4  0:00.08 /usr/lib/unity-settings-daemon/unity-settings-daemon
 3521 nickeys    20   0  835M 31380 25416 S  0.0  0.4  0:00.85 /usr/lib/unity-settings-daemon/unity-settings-daemon
13144 root       20   0  136M 30488  3068 S  0.0  0.4  0:00.65 xl create /etc/xen/pv-guest1.cfg
13143 root       20   0  136M 30488  3068 S  0.0  0.4  0:15.69 xl create /etc/xen/pv-guest1.cfg
 2383 root       20   0  136M 30480  3056 S  0.0  0.4  0:01.06 xl create /etc/xen/pv-guest3.cfg
 2382 root       20   0  136M 30480  3056 S  0.0  0.4  0:23.89 xl create /etc/xen/pv-guest3.cfg
 2617 root       20   0  136M 30464  3040 S  0.0  0.4  0:00.81 xl create /etc/xen/pv-guest4.cfg
 2616 root       20   0  136M 30464  3040 S  0.0  0.4  0:20.26 xl create /etc/xen/pv-guest4.cfg
10210 root       20   0  136M 30464  3040 S  0.0  0.4  0:00.69 xl create /etc/xen/pv-guest2.cfg
10209 root       20   0  136M 30464  3040 S  0.0  0.4  0:17.93 xl create /etc/xen/pv-guest2.cfg
 3466 nickeys    20   0  468M 29976 25032 S  0.0  0.4  0:00.00 /usr/lib/ibus/ibus-ui-gtk3
 3468 nickeys    20   0  468M 29976 25032 S  0.0  0.4  0:00.00 /usr/lib/ibus/ibus-ui-gtk3
 3469 nickeys    20   0  468M 29976 25032 S  0.0  0.4  0:01.10 /usr/lib/ibus/ibus-ui-gtk3 

Those statistics were, of course, sorted in memory usage and the 2 machines were in idle.
I looked at the two PCs and found nothing strange aside from only the problem (shortage of memory in B).

Are there any other tools I can use when this happens?

Thanks!


_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: How could I find memory hogging process in Dom0?

Phil Susi
On 3/22/2018 6:14 AM, Minjun Hong wrote:
> Hi.
> While installing and using Xen on my two PCs, I see that the dom0 is still
> running out of memory on one PC.

You are not running out of memory.

> I installed Xen in the same way (with same kernel version and same xen
> version) on the computers.
>
> But on one computer (labeled A), there is no problem, and on the other
> computer (labeled B),  huge amounts of file page is consumed:
>
> # /proc/meminfo of A
>> MemTotal:        7545164 kB
>> MemFree:         6275968 kB
>> MemAvailable:    7039388 kB

7 gigs available.

>> Buffers:           43644 kB
>> *Cached:           937928 kB*
> # /proc/meminfo of B
>> MemTotal:        7487512 kB
>> MemFree:          138888 kB
>> MemAvailable:    6130396 kB

6.1 gigs available.  Not much difference.

>> Buffers:          100832 kB
>> *Cached:          6227632 kB*

The only difference is that this one is using 6 gigs of the free memory
to cache files, since it has nothing better to do with it.  This is
typical for a Linux system.


_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: How could I find memory hogging process in Dom0?

Christopher Myers

A good command to try is "free":


cmyers@caradhras:~> free -h
                    total        used        free      shared  buff/cache   available
Mem:            15G        4.8G        6.2G        691M        4.2G         10G
Swap:          8.0G          0B        8.0G

In this case, you can see that my laptop is showing 6.2GB free out of 15GB. But, only 4.8GB is actually used by stuff; there's an extra 4.2GB used by the buffers and cache.

The longer a machine runs, the more will be used by that buff/cache line, until the amount of "free" dwindles down toward zero.

This is actually a good thing! It means that, instead of just sitting there unused, the computer is using ram to speed things up, instead of constantly having to go to disk for things that it frequently accesses.

A good explanation to read is here: https://serverfault.com/questions/85470/meaning-of-the-buffers-cache-line-in-the-output-of-free


Chris


From: Xen-users <[hidden email]> on behalf of Phil Susi <[hidden email]>
Sent: Thursday, March 22, 2018 8:01:01 AM
To: Minjun Hong; [hidden email]
Subject: Re: [Xen-users] How could I find memory hogging process in Dom0?
 
On 3/22/2018 6:14 AM, Minjun Hong wrote:
> Hi.
> While installing and using Xen on my two PCs, I see that the dom0 is still
> running out of memory on one PC.

You are not running out of memory.

> I installed Xen in the same way (with same kernel version and same xen
> version) on the computers.
>
> But on one computer (labeled A), there is no problem, and on the other
> computer (labeled B),  huge amounts of file page is consumed:
>
> # /proc/meminfo of A
>> MemTotal:        7545164 kB
>> MemFree:         6275968 kB
>> MemAvailable:    7039388 kB

7 gigs available.

>> Buffers:           43644 kB
>> *Cached:           937928 kB*
> # /proc/meminfo of B
>> MemTotal:        7487512 kB
>> MemFree:          138888 kB
>> MemAvailable:    6130396 kB

6.1 gigs available.  Not much difference.

>> Buffers:          100832 kB
>> *Cached:          6227632 kB*

The only difference is that this one is using 6 gigs of the free memory
to cache files, since it has nothing better to do with it.  This is
typical for a Linux system.


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

_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: How could I find memory hogging process in Dom0?

Minjun Hong
On Thu, Mar 22, 2018 at 10:44 PM, Christopher Myers <[hidden email]> wrote:

A good command to try is "free":


cmyers@caradhras:~> free -h
                    total        used        free      shared  buff/cache   available
Mem:            15G        4.8G        6.2G        691M        4.2G         10G
Swap:          8.0G          0B        8.0G

In this case, you can see that my laptop is showing 6.2GB free out of 15GB. But, only 4.8GB is actually used by stuff; there's an extra 4.2GB used by the buffers and cache.

The longer a machine runs, the more will be used by that buff/cache line, until the amount of "free" dwindles down toward zero.

This is actually a good thing! It means that, instead of just sitting there unused, the computer is using ram to speed things up, instead of constantly having to go to disk for things that it frequently accesses.

A good explanation to read is here: https://serverfault.com/questions/85470/meaning-of-the-buffers-cache-line-in-the-output-of-free


Chris


From: Xen-users <[hidden email]> on behalf of Phil Susi <[hidden email]>
Sent: Thursday, March 22, 2018 8:01:01 AM
To: Minjun Hong; [hidden email]
Subject: Re: [Xen-users] How could I find memory hogging process in Dom0?
 
On 3/22/2018 6:14 AM, Minjun Hong wrote:
> Hi.
> While installing and using Xen on my two PCs, I see that the dom0 is still
> running out of memory on one PC.

You are not running out of memory.

> I installed Xen in the same way (with same kernel version and same xen
> version) on the computers.
>
> But on one computer (labeled A), there is no problem, and on the other
> computer (labeled B),  huge amounts of file page is consumed:
>
> # /proc/meminfo of A
>> MemTotal:        7545164 kB
>> MemFree:         6275968 kB
>> MemAvailable:    7039388 kB

7 gigs available.

>> Buffers:           43644 kB
>> *Cached:           937928 kB*
> # /proc/meminfo of B
>> MemTotal:        7487512 kB
>> MemFree:          138888 kB
>> MemAvailable:    6130396 kB

6.1 gigs available.  Not much difference.

>> Buffers:          100832 kB
>> *Cached:          6227632 kB*

The only difference is that this one is using 6 gigs of the free memory
to cache files, since it has nothing better to do with it.  This is
typical for a Linux system.


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

Thanks for your answer, Christopher and Phil.
I also know that it is better to use the free memory as cache for file backed data or buffer rather than just leave it unused as you mentioned.

However, this is happening all the time, even if I reboot the machines.
And it causes performance degradation of B. So I need to find some way to resolve this problem.

After discovering performance degradation of B, I've reported some of the results of checking some of the two devices.
Because I installed Xen on the 2 PCs in the same way, I cannot understand why this is happening and I need to ask your help.


_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: How could I find memory hogging process in Dom0?

Phil Susi
On 3/23/2018 1:00 AM, Minjun Hong wrote:
> Thanks for your answer, Christopher and Phil.
> I also know that it is better to use the free memory as cache for file
> backed data or buffer rather than just leave it unused as you mentioned.
>
> However, this is happening all the time, even if I reboot the machines.
> And it causes performance degradation of B. So I need to find some way to
> resolve this problem.

The cache isn't causing a performance degradation, but it may be another
symptom of what is.  You may have a process doing a lot of disk IO, such
as an updatedb on a very large filesystem.  That would fill the cache
with data and reduce the IO available to other tasks.  Take a look at iotop.


_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: How could I find memory hogging process in Dom0?

Christopher Myers
In reply to this post by Minjun Hong

Thanks for your answer, Christopher and Phil.
I also know that it is better to use the free memory as cache for file backed data or buffer rather than just leave it unused as you mentioned.

However, this is happening all the time, even if I reboot the machines.
And it causes performance degradation of B. So I need to find some way to resolve this problem.

After discovering performance degradation of B, I've reported some of the results of checking some of the two devices.
Because I installed Xen on the 2 PCs in the same way, I cannot understand why this is happening and I need to ask your help.


Out of curiosity, how much memory does your host have? Are you oversubscribing?

Also, what kind of performance degradation are you seeing on B? Are you possibly being bitten by the spectre/meltdown cpu "fixes" masquerading as other problems?

Have you done the performance tuning on your dom0 like is listed here? https://wiki.xen.org/wiki/Tuning_Xen_for_Performance

Regardless of how much memory you allocate to a linux machine, it will always use as much memory as it can. So if you gave your host 100GB of memory, it would try to find a way to use up pretty much all of it, even if that means caching a file that you used one time in memory. So every time you increase the memory on a domu, it will look like it's just sucking it up, when in reality, it's just taking advantage of the resources that you provided it.

FWIW, on my Debian Stretch Xen host at home, it has 4GB of memory total. I've allocated a fixed 512MB to dom0, 2GB to one domu, and 384MB to three other domu's, and it runs circles around my previous vmware host, even when running intensive stuff like my Minecraft server that I host for my friends and I.

Chris

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

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How could I find memory hogging process in Dom0?

Christopher Myers
In reply to this post by Phil Susi

On Fri, 2018-03-23 at 10:20 -0400, Phil Susi wrote:
On 3/23/2018 1:00 AM, Minjun Hong wrote:
<blockquote type="cite">
Thanks for your answer, Christopher and Phil.
I also know that it is better to use the free memory as cache for file
backed data or buffer rather than just leave it unused as you mentioned.

However, this is happening all the time, even if I reboot the machines.
And it causes performance degradation of B. So I need to find some way to
resolve this problem.
</blockquote>

The cache isn't causing a performance degradation, but it may be another
symptom of what is.  You may have a process doing a lot of disk IO, such
as an updatedb on a very large filesystem.  That would fill the cache
with data and reduce the IO available to other tasks.  Take a look at iotop.



You may also try the program "xentop" from your dom0.

Chris

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

signature.asc (499 bytes) Download Attachment