Hi,
I was testing cpu limit feature and noticed that in the top commands output, the percentage of CPU usage for given user is wrong. Maybe cpu limits haven got applied properly ?
I set this for a user
lvectl set 500 --cpu=2 --ncpu=1
Then tested it by running a high cpu consuming test php script through lve_wrapper and in top command I see this much usage..
{
It seems to have applied the logic of 2% * 16 CPU cores = 32% of CPU.. so its allowing 32% of cpu usage to this user. But while applying cpu usage, I had specifically mentioned ncpu=1.. so it should not multiply it into 16.. Is it a kind of bug?
Also, how do I verify ncpu limit. lvectl list does not show any field for number of cores assigned to users..?
Regards,
I was testing cpu limit feature and noticed that in the top commands output, the percentage of CPU usage for given user is wrong. Maybe cpu limits haven got applied properly ?
I set this for a user
lvectl set 500 --cpu=2 --ncpu=1
Then tested it by running a high cpu consuming test php script through lve_wrapper and in top command I see this much usage..
{
Code:
478397 testuser 39 19 98.5m 688 600 R 31.4 0.0 0:06.32 seq 478539 testuser 20 0 151m 8820 5828 R 0.6 0.0 0:00.02 php-cgi 475195 testuser 20 0 105m 1948 1552 S 0.0 0.0 0:00.06 bash 478394 testuser 20 0 6132 456 372 S 0.0 0.0 0:00.00 lve_wrapper 478395 testuser 20 0 249m 11m 7428 S 0.0 0.0 0:00.01 php 478396 testuser 20 0 103m 1288 1108 S 0.0 0.0 0:00.00 sh
Also, how do I verify ncpu limit. lvectl list does not show any field for number of cores assigned to users..?
Regards,
Comment