I have virtual box v1.6.2 running on fedora core 8 - 2.6.25.9-40.fc8PAE
Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz.
The problem is one cpu seems to be constantly used.
The guest is windows xp with sp2.
Any idea why the "select" system calls take so long ?
Code: Select all
top - 14:17:56 up 3:31, 3 users, load average: 0.65, 0.22, 0.42
Tasks: 147 total, 1 running, 146 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.2%us, 49.2%sy, 1.0%ni, 48.3%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 5110472k total, 1937920k used, 3172552k free, 820228k buffers
Swap: 522104k total, 0k used, 522104k free, 417040k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6789 root 20 0 468m 270m 15m S 100 5.4 0:50.93 VirtualBox
The usage seems to be in kernel system calls:
vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 2362684 818416 409380 0 0 93 75 440 504 5 41 53 1 0
1 0 0 2355120 818416 409380 0 0 0 0 1044 1421 3 50 46 0 0
1 0 0 2362684 818416 409380 0 0 0 0 1011 2095 5 51 44 0 0
1 0 0 2354996 818428 409368 0 0 0 0 1017 1155 3 50 47 0 0
1 0 0 2354500 818460 409348 0 0 32 0 950 691 3 51 47 0 0
running strace for about 5 sec:
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00 5.131674 42764 120 select
0.00 0.000000 0 119 113 read
0.00 0.000000 0 214 gettimeofday
0.00 0.000000 0 10 writev
0.00 0.000000 0 12 futex
------ ----------- ----------- --------- --------- ----------------
100.00 5.131674 475 113 total
This is some strace output that seems to repeat.
select(29, [21 22 23 28], [], [], {0, 49016}) = 0 (Timeout)
gettimeofday({1216038606, 443904}, NULL) = 0
read(21, 0x9e364b8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1216038606, 444013}, NULL) = 0
select(29, [21 22 23 28], [], [], {0, 49022}) = 0 (Timeout)
gettimeofday({1216038606, 493911}, NULL) = 0
read(21, 0x9e364b8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1216038606, 494028}, NULL) = 0
select(29, [21 22 23 28], [], [], {0, 49007}) = 0 (Timeout)
gettimeofday({1216038606, 543931}, NULL) = 0
read(21, 0x9e364b8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1216038606, 544058}, NULL) = 0
select(29, [21 22 23 28], [], [], {0, 48977}) = 0 (Timeout)
gettimeofday({1216038606, 592903}, NULL) = 0
read(21, 0x9e364b8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1216038606, 592997}, NULL) = 0
select(29, [21 22 23 28], [], [], {0, 38}) = 0 (Timeout)
gettimeofday({1216038606, 593867}, NULL) = 0
read(21, 0x9e364b8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1216038606, 593958}, NULL) = 0
select(29, [21 22 23 28], [], [], {0, 49077}) = 0 (Timeout)
gettimeofday({1216038606, 643906}, NULL) = 0
read(21, 0x9e364b8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1216038606, 644017}, NULL) = 0
select(29, [21 22 23 28], [], [], {0, 49018}) = 0 (Timeout)
gettimeofday({1216038606, 693910}, NULL) = 0
read(21, 0x9e364b8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1216038606, 694030}, NULL) = 0
select(29, [21 22 23 28], [], [], {0, 49005}) = 0 (Timeout)
gettimeofday({1216038606, 743911}, NULL) = 0
read(21, 0x9e364b8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1216038606, 744030}, NULL) = 0
select(29, [21 22 23 28], [], [], {0, 49005}) = 0 (Timeout)
gettimeofday({1216038606, 794490}, NULL) = 0