SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Rep:
Performance problems during disk i/o
Slackware 64 bit current.
8GB ram
Two (2) Western Digital Black edition 1 TB SATA III 7200 RPM drives
3.1.1 kernel
Phenom 3400MHz six core cpu
When I have a process that is maxing out the hard drives, such as a file copy process, the entire system becomes sluggish and responds poorly. If I have a 20GB file, such as a large database or a virtual machine disk image, and I want to copy it from one drive to another, the system becomes very sluggish and responds poorly during the file copy.
Are there ways to optimize this system such that the system can still be usable even when disk i/o is maxed out, and maybe to optimize disk speed?
That's not really a (long-term) viable solution.
I'd be surprised if Pat has pushed a 3.1.1 kernel out the door, so did you do it yourself ?. Might need some closer inspection of options selected. I have a couple of that level kernel lying around, I'll do some quick tests.
Maybe have a look at latencytop.
It does indeed depend on a lot of things, so if you could post your .config or try and see if it still happens with the generic kernel, it would help.
In many cases the I/O scheduler does have an impact on it, so changing that may help. You can change it dynamically by echoing the name of the scheduler into '/sys/block/sda/queue/scheduler'. Change 'sda' to whatever your disk is.
Since you build your own kernel I would always recommend using a better cpu scheduler (BFS) and a better IO scheduler (BFQ). If that doesn't improve interactivity sufficiently you can help the system along by following macemoneta's advice. For instance, all my xterm sessions are automatically started in SCHED_IDLEPRIO and with ionice level 3. Whatever I do in an xterm session (using all virtual cores and all disks) has no noticeable effect on my desktop interactivity.
Having said all that, if your copy process is a regular occurrence you might want to optimize the spindle layout by putting the system on a third disk or even a small SSD.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Original Poster
Rep:
Quote:
Originally Posted by syg00
That's not really a (long-term) viable solution.
I'd be surprised if Pat has pushed a 3.1.1 kernel out the door, so did you do it yourself ?. Might need some closer inspection of options selected. I have a couple of that level kernel lying around, I'll do some quick tests.
Maybe have a look at latencytop.
3.1.1 is on kernel.org right now, and it came out just this last week.
It is normal for the kernel to swap out processes to re-allocate the memory for disk caching. If you don't want the kernel to do this, lower the value in
What specifically is your system doing when you say it's sluggish? Is the CPU pinned? Running out of memory and swapping? Are you trying to do something that is competing for the busy disk(s)? If you don't measure it you won't know what the problem really is.
-mark
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.