Skip to contentSkip to conversation

OOM killer problem

DISCUSSION Satoshi Uchida 2 participants 3 messages Jun 19, 2006

lore
Share & tools
lore
#0 lore raw

Hello.

I seem to the oom killer problem which is similler at the case of slower devices.

My environment is x86, -unstable and using physical partition as VM disk. Start up Four VM, and take them high I/O load by dd program.
ex. dd if=/dev/null of=/tmp/filename bs=1M count=4096.

Therefore, some VM kill many deamon by oom-killer, and return to login console without some deamon.

In the case of less than three VM, this problem are not observed only a few. And in the case of using image files as VM disk (by loop device), too.
(In loop device environment, seven VM is processed.)

In my examination, vbd thread became often OO-states.
So, I think that this cause is that I/O request is not processed faster. This problem is found in the case file systems is slower by some Web page.

Truth cause of this problem may be not in Xen, but so may be in Linux. However, I report here.
If Truth cause is in Linux, this situation is not observed in Linux, but is in VM on Xen.
So, It may be need to resolve at Xen by inproving I/O model

Satoshi UCHIDA

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#1 lore raw
Quoted 1 line · Satoshi Uchida

In my examination, vbd thread became often OO-states.

We'll need more info. You mention the vbd thread, so it is it usually domain0 that ends up in OOM state? How much memory do you allocate each domain0 and each other VM?

Quoted 2 lines

So, I think that this cause is that I/O request is not processed faster. This problem is found in the case file systems is slower by some Web page.

Can you clarify what you mean here?

Thanks,
Keir

#2 lore raw

Thank you for reply.

Quoted 3 lines
Quoted 1 line

In my examination, vbd thread became often OO-states.

We'll need more info. You mention the vbd thread, so it is it usually

domain0 that ends up in OOM state? How much memory

Quoted 1 line

do you a allocate each domain0 and each other VM?

My envrionment is
X86 (Pentium 4), 2.5GB Mem and IDE and SCSI disk.

I allocate 1GB memory for domain0 and 256MB memory for each domainU (4VMs). Sweps are allocated 2.5GB on IDE for domain0, and No swaps for domain U the dd program run on each domainUs,
VM disks for domainU are used pysical partition on SCSI (ex. /dev/sda1 /dev/sda2 /dev/sda3/ /dev/sda4).

Oom-killer wakes up for each domainU, and kills each deamon such as sshd. Thereafter, it kills login and bash, so return login console.

Above OO-states shows state in vbd-back driver.
I seem that each variable counts following state.
oo_req is blockd requests.
rd_req is pended read requests.
wr_req is rended write requests.

In the case of three VM, OO state is not so occured. However, In the case of four VM, OO state is occured enormously.

So, I seem that I/O is interfered by I/O from other VM, and so slower. Therefore, I/O request is pileing up, and so OOM killer is waked up.

I create observation program for VBD I/O requests. This patch will through after few days.

Quoted 6 lines
Quoted 4 lines

So, I think that this cause is that I/O request is not processed faster.
This problem is found in the case file systems is slower by some Web page.

Can you clarify what you mean here?

In past, OOM killer is became the problems all over the file system.
ex ext3, nfs.
I research these problem not enough, but I think to occur sisutation
which is similler to explain above.

Thank you,
Satoshi UCHIDA

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel