Very slow LXC perfoance

stony999

Renowned Member
Oct 22, 2010
20
1
68
I have setup 2 machines with Intel E1240 v6 CPUs and 32 GB of RAM on latest proxmox51 (Dec 2017). For the time being the machines run independently.
After a fresh install and restoring an LXC virtual machine from another Intel machine, I discovered huge performance issues. Machines won't really start and the load is between 10 and 20 in idle mode. And "iotop" shows about 10-15 MB/sec writes during idle, although no process is really writing. Filesystem ist ZFS Raid1.

What puzzles me most, is the following.
The following log is from a Freeswitch SIP server process starting up. The following lines are showing a runtime of some msec as the display suggests. In fact, these lines take about 5 sec in reality. So there must be something severe going on.
Code:
2018-03-08 16:48:50.950210 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_set_media_stats'
2018-03-08 16:48:50.950221 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_video_bitrate'
2018-03-08 16:48:50.950229 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_video_refresh'
2018-03-08 16:48:50.950237 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_outgoing_answer'
2018-03-08 16:48:50.950241 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_limit'
2018-03-08 16:48:50.950246 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_limit_release'
2018-03-08 16:48:50.950250 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_limit_release'
2018-03-08 16:48:50.950257 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_loglevel'
2018-03-08 16:48:50.950266 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_media'
2018-03-08 16:48:50.950270 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_media_3p'
2018-03-08 16:48:50.950275 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_media_reneg'
2018-03-08 16:48:50.950280 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_park'
2018-03-08 16:48:50.950285 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_pause'
2018-03-08 16:48:50.950289 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_phone_event'
2018-03-08 16:48:50.950294 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_ring_ready'
2018-03-08 16:48:50.950299 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_pre_answer'
2018-03-08 16:48:50.950304 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_preprocess'
2018-03-08 16:48:50.950308 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_record'
2018-03-08 16:48:50.950313 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_recovery_refresh'
2018-03-08 16:48:50.950318 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_recv_dtmf'
2018-03-08 16:48:50.950323 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_redirect'
2018-03-08 16:48:50.950327 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_send_dtmf'
2018-03-08 16:48:50.950332 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_session_heartbeat'
2018-03-08 16:48:50.950336 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_setvar_multi'
2018-03-08 16:48:50.950341 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_setvar'
2018-03-08 16:48:50.950345 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_transfer'
2018-03-08 16:48:50.950350 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_dual_transfer'
2018-03-08 16:48:50.950355 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_simplify'
2018-03-08 16:48:50.950360 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_jitterbuffer'
2018-03-08 16:48:50.950364 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_zombie_exec'
2018-03-08 16:48:50.950369 [NOTICE] switch_loadable_module.c:338 Adding API Function 'uuid_xfer_zombie'
2018-03-08 16:48:50.950373 [NOTICE] switch_loadable_module.c:338 Adding API Function 'xml_flush_cache'
2018-03-08 16:48:50.950378 [NOTICE] switch_loadable_module.c:338 Adding API Function 'xml_locate'
2018-03-08 16:48:50.950382 [NOTICE] switch_loadable_module.c:338 Adding API Function 'xml_wrap'
2018-03-08 16:48:50.950388 [NOTICE] switch_loadable_module.c:338 Adding API Function 'file_exists'
2018-03-08 16:48:50.950392 [NOTICE] switch_loadable_module.c:338 Adding API Function 'getcputime'
2018-03-08 16:48:50.950397 [NOTICE] switch_loadable_module.c:338 Adding API Function 'json'
2018-03-08 16:48:50.950401 [NOTICE] switch_loadable_module.c:338 Adding API Function 'msrp'

I made some experience with Apollo Lake CPUs recently (but this is Kaby Lake), where I had to reduce c-states to get the right performance. So I added
Code:
GRUB_CMDLINE_LINUX="intel_idle.max_cstate=1"
to grub. However this changed nothing, although
Code:
/sys/module/intel_idle/parameters/max_cstate
was 1.

I am lost here. Anybody has a hint?
 
Hi,

general you should disable all power savings in the bios and/or if available set the bios in performance mode.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!