From owner-freebsd-questions Mon May 17 16: 0:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from inet.chip-web.com (c1003518-a.plstn1.sfba.home.com [24.1.82.47]) by hub.freebsd.org (Postfix) with SMTP id 6563E15116 for ; Mon, 17 May 1999 16:00:18 -0700 (PDT) (envelope-from ludwigp@toy.chip-web.com) Received: (qmail 16922 invoked from network); 17 May 1999 23:00:17 -0000 Received: from speedy.chip-web.com (HELO speedy) (172.16.1.1) by inet.chip-web.com with SMTP; 17 May 1999 23:00:17 -0000 Message-Id: <4.1.19990517155811.00a8e8c0@mail-r> X-Sender: ludwigp@toy.chip-web.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Mon, 17 May 1999 16:00:38 -0700 To: junkmale@xtra.co.nz, freebsd-questions@freebsd.org From: Ludwig Pummer Subject: Re: ftpd uses > 50% of CPU In-Reply-To: <19990517075512.RVTO7623210.mta2-rme@wocker> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 12:53 AM 5/17/1999 , Dan Langille wrote: >I transferred a 23M file via FTP from my NT box to my FreeBSD box last >night. The transfer rate varied between 170 and 200 KB/s. I thought that >was a bit low over a CAT5 with 10M cards. So I looked to see what was >going on in the FreeBSD box. I found ftpd was running very high. The >snapshot below is not typical. It often was 50 or 60% of CPU. >39626 root 105 20 972K 252K RUN 91.5H 39.36% 39.36% rc5des That's probably one of your problems right there. It's been discussed a few times before... Even if rc5des is niced to 52 (man idprio), it still takes away CPU time for kernel idle processes. This ends up slowing down everything else. It has to do with FreeBSD's process priority scheduling system or something like that (I don't know the internals of FreeBSD, I just remember what was discussed). --Ludwig Pummer ( ludwigp@bigfoot.com ) ICQ UIN: 692441 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message