[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to make apps play nice?



Hello,

Use top or htop to see what is exactly using the CPU.
23% CPU usage is odd if the machine is doing nothing.
Check if it's system that is using your whole CPU.
Generally speaking, anyway, it depends on disk usage, i mean, doing a scp over a 1GB connection (local) will have a large toll on the system and that's why we have SCSI that's much better armed to face that kind of transfer. Even 100Mbits can make your hd work hard... very hard. And there's not much you can do there.

The other person is right. If you see that 100% of the CPU is being used by system, either your hard drive controller is not optimally configured (see read/write cache, dma, and stuff), or it's crap, or consider switching to scsi :) Anyway, *nix systems don't do "find" all the time :)

Craig Hagerman wrote:
I'm running Debian amd64 on an Asus board with an AMD64 3200+ and a gig of ram.

This box is mainly used as a home media center and file server. Most
of the time the system monitor shows that CPU usage is around 23% and
ram usage between 40% and 80%. But for some reason when I copy files
(cp or scp network copying) it seems to take over - CPU usage shoots
up to 100% and everything else starts stuttering. Same thing also
happens with running find command or other programs. If I am listening
to music it starts skipping, if I am watching video, it basically
stops. Why is this? I know I can use 'nice' to change the niceness of
a program, but I want to know how to alter settings so that things
like cp, scp, find, etc do not hog up the entire CPU all the time, not
just on a case-by-case basis.

Any help or advice would be appreciated.

Craig



--
Jean-Christophe Montigny
Etudiant de troisième année à Grenoble Ecole de Management
Actuellement en parcours ingénieur à l'Ecole Nationale Supérieure de Télécommunications de Bretagne
begin:vcard
fn:Jean-Christophe Montigny
n:Montigny;Jean-Christophe
org;quoted-printable:Association Pl@n=C3=A8tes
adr;quoted-printable:;;12, rue Pierre S=C3=A9mard;Grenoble;FR;38000;France
email;internet:jcm@assoces.com
title:Responsable Com Web
x-mozilla-html:FALSE
url:http://planetes.assoces.com/
version:2.1
end:vcard


Reply to: