Hi,
I'm running PVE on RAM-constrained hardware - just 4GB, non-upgradable. Naturally, I want most of the RAM to be used for (qemu) VMs.
Judging from top(1) output, these pve processes seem to use "lots" of RES memory, while maybe not doing that much with only 2 VMs setup?
To me this looked a bit like, maybe the perl code caches something on startup or allocs some read buffer or something in advance. I don't quite understand Perl (its been a while...), but these numbers seem ... interesting:
"Empty" perl: uses 5M RES:
A perl that only did "use PVE::Tools" goes to 18M RES:
A perl that did "use PVE::Tools; use PVE::RPCEnvironment;" jumps to 47M RES:
:-O
Chris
I'm running PVE on RAM-constrained hardware - just 4GB, non-upgradable. Naturally, I want most of the RAM to be used for (qemu) VMs.
Judging from top(1) output, these pve processes seem to use "lots" of RES memory, while maybe not doing that much with only 2 VMs setup?
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2895443 www-data 20 0 366912 143608 12152 S 4.8 3.6 0:15.20 pveproxy worker
2897130 www-data 20 0 366704 142624 11432 S 0.0 3.6 0:21.41 pveproxy worker
2903390 www-data 20 0 361716 134492 8256 S 0.0 3.4 0:02.37 pveproxy worker
2898965 root 20 0 360212 132780 7976 S 0.0 3.3 0:11.37 pvedaemon worker
2898975 root 20 0 360244 132356 7612 S 4.8 3.3 0:11.14 pvedaemon worker
2898968 root 20 0 360240 132268 7564 S 0.0 3.3 0:08.09 pvedaemon worker
1292 www-data 20 0 353132 127216 2400 S 0.0 3.2 0:51.95 pveproxy
2898960 root 20 0 351572 126736 3348 S 0.0 3.2 0:00.10 pvedaemon
1368 root 20 0 331396 100324 1888 S 0.0 2.5 2:40.76 pvescheduler
1248 root 20 0 336672 100040 3536 S 0.0 2.5 2:24.46 pve-ha-crm
1305 root 20 0 336132 99192 3196 S 0.0 2.5 3:56.67 pve-ha-lrm
989 root 20 0 275996 89384 5900 S 0.0 2.2 90:08.20 pve-firewall
994 root 20 0 274284 88276 6484 S 1.9 2.2 121:42.38 pvestatd
To me this looked a bit like, maybe the perl code caches something on startup or allocs some read buffer or something in advance. I don't quite understand Perl (its been a while...), but these numbers seem ... interesting:
"Empty" perl: uses 5M RES:
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2913262 ch 20 0 10732 4800 4380 S 0.0 0.1 0:00.00 perl
A perl that only did "use PVE::Tools" goes to 18M RES:
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2911974 ch 20 0 23000 17940 5932 S 0.0 0.4 0:00.79 perl
A perl that did "use PVE::Tools; use PVE::RPCEnvironment;" jumps to 47M RES:
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2911974 ch 20 0 62548 47044 11044 S 0.0 1.2 0:02.29 perl
:-O
Chris