How can I control all process using some cpu core.

Asked by Jalee lee

Dear All,
I use ubuntu 14.04 running KVM and had 20 vm-guest. I found out, some time these vm-guest packets average latency will over 3000 ms and packets loss occur. Normal average latency is about 400~800 ms.

these vm-guest cpu still on the 98%, because I use tester send more traffics.
How can I control all process (not vm) to cpu node 0/1_vCPU 0 and 1 ? I want to resver 4 vCPU core to them.

The other vcpu is for vm-guest( one vm-guest assign one vcpu).
This is lab situation.

Thanks,

Jalee

============================== log
lab@ubuntu-KVM01:/sys/fs/cgroup/cpuset$ uname -a
Linux ubuntu-KVM01 3.16.0-33-generic #44~14.04.1-Ubuntu SMP Fri Mar 13 10:33:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

lab@ubuntu-KVM01:/sys/fs/cgroup/cpuset$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 24
On-line CPU(s) list: 0-24
Thread(s) per core: 1
Core(s) per socket: 12
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 62
Stepping: 4
CPU MHz: 1200.000
BogoMIPS: 4789.30
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 30720K
NUMA node0 CPU(s): 0-11
NUMA node1 CPU(s): 12-23

lab@ubuntu-KVM01:/sys/fs/cgroup/cpuset$ more /proc/meminfo
MemTotal: 115548696 kB
MemFree: 61058944 kB
MemAvailable: 63764492 kB
Buffers: 55904 kB
Cached: 2842276 kB
SwapCached: 0 kB
Active: 2594240 kB
Inactive: 1193256 kB
Active(anon): 892364 kB
Inactive(anon): 3808 kB
Active(file): 1701876 kB
Inactive(file): 1189448 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 117403644 kB
SwapFree: 117403644 kB
Dirty: 164 kB
Writeback: 0 kB
AnonPages: 889352 kB
Mapped: 72400 kB
Shmem: 6852 kB
Slab: 196316 kB
SReclaimable: 78956 kB
SUnreclaim: 117360 kB
KernelStack: 13024 kB
PageTables: 20388 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 150405384 kB
Committed_AS: 2423076 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 570572 kB
VmallocChunk: 34291087404 kB
HardwareCorrupted: 0 kB
AnonHugePages: 665600 kB
HugePages_Total: 24192
HugePages_Free: 14112
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 243372 kB
DirectMap2M: 8110080 kB
DirectMap1G: 109051904 kB

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Solved by:
Jalee lee
Solved:
Last query:
Last reply:
Revision history for this message
Jalee lee (jalee127) said :
#1

I use isolcpus command can resolve my issues.
Thanks all.

Jalee