Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > Mysterious I/O

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-25-2009   #1 (permalink)
Just Joined!
 
Join Date: Jan 2009
Posts: 3
Question Mysterious I/O

Hi,

This is a real mystery to me...

Ubuntu 9.04, kernel 2.6.28-15-generic, x86_64.

I have two USB drives attached: call them sdb and sdc

The partitions on both are LVM and are encrypted using luks.

All file systems are ext4.

The computer has 4GB RAM.

I've started an "mv" of a bunch of files from an fs on sdb to and fs on sdc, around 120GB in total.

My root file system is on sda5 and is not encrypted. Swap is on sda6 and is not encrypted.

When the "mv" is running:
  • other threads start writing to disk (according to iotop)
  • sda5 (my root fs) is getting up to 200 tps and input of up to 2MB/s and output of up to 2MB/s (according to iostat)
  • load avg (according to top) goes thru the roof (around 15, but have seen 25)

If I pause the "mv" (stop the process with with ctrl-Z), the system goes quiet, and the IO to sda5 stops. If un-pause the "mv", it all fires up again.

Any ideas?

regards,
RR
russellrobinson is offline  


Reply With Quote
Old 09-25-2009   #2 (permalink)
Just Joined!
 
Join Date: Jan 2009
Posts: 3
Mystery solved...

Not a kernel problem.

The processes that were causing the problem were vmware-vmx.

I stop VMWare, problem goes away.

The question now is: WTF is vmware doing?

Will post on the VMWare website forums...
russellrobinson is offline   Reply With Quote
Old 09-25-2009   #3 (permalink)
Just Joined!
 
Join Date: Jan 2009
Posts: 3
Thumbs up

Solution...

It appears the problem was not VMWare per se, but the swappiness settings of the kernel.

It also appears that iotop attributes IO to threads even though it's the kernel (kswapd or bdflush) that's perform the IO.

These settings in /etc/sysctl.conf have solved the problem:
vm.swappiness = 0
vm.overcommit_memory = 1
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
vm.dirty_expire_centisecs = 1000
dev.rtc.max-user-freq = 1024
My conclusion is that VMWare threads were being targeted simply because they held a lot of memory.

The overall tuning including the above settings were obtained from here: fewt.com/2008/06/performance-tuning-vmware-server-on.html
russellrobinson is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 12:07 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2