From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mohamed K. Ahmed" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: 5.1 vdump 99.9% CPU Date: Tue, 26 Nov 2002 10:55:16 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3681a28.a283681@vsc.teksystems.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1038325919 10388 80.91.224.249 (26 Nov 2002 15:51:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2002 15:51:59 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18Gi0D-0002hP-00 for ; Tue, 26 Nov 2002 16:51:57 +0100 Original-Received: (qmail 28594 invoked by uid 5); 26 Nov 2002 15:53:52 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 28585 invoked by uid 49493); 26 Nov 2002 15:53:52 -0000 Original-Received: from mkahmed@vsc.teksystems.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-3.8/5.0):. Processed in 0.554101 secs); 26 Nov 2002 15:53:52 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 26 Nov 2002 15:53:51 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6600FF6XHQPZ@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 26 Nov 2002 10:53:51 -0500 (EST) Original-Received: from mail.vsc.teksystems.com (mail.vsc.teksystems.com [63.73.230.193]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6600M38XHLA9@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 26 Nov 2002 10:53:46 -0500 (EST) Original-Received: from vsc.teksystems.com ([127.0.0.1]) by mail.vsc.teksystems.com (Netscape Messaging Server 4.1) with ESMTP id H66XK400.H0I for ; Tue, 26 Nov 2002 10:55:16 -0500 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Netscape Webmail Content-language: en Content-Disposition: inline X-Accept-Language: en Xref: main.gmane.org gmane.os.tru64.managers:2570 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2570 Thanx to Dr. Tom Blinn and Johan Brusche Pointed out that /dev/ntape/tape0c is the one that uses high denisty like the old /dev/nrmt0h, see man tz for more useful information. Also using the -C switch means doing compression on the software level (ie by the system), while I had a tape drive DLT892 that does compression by itself (better let the tape drive do it) and for an old system as my AS2100, this software compression was consuming a lot of CPU %. Below are the replies: --------------------------------------------- >From Dr. Tom Blinn: "One thing I can see here is that you are asking vdump to do data compression in software (that's what the -C switch does). Whether this is useful depends on your tape drive (if your tape drive can do compression in the drive, you are USUALLY better off letting the drive do the compression, it's got dedicated hardware to do it, and if you can't feed it data fast enough because you've got a single thread of execution on the host trying to compress data on the fly before sending it to the tape drive, then you wind up with the drive not able to stream data onto the tape, which takes up more tape space, plus if the drive is trying to compress data that was already compressed by the host system, it can wind up taking MORE space on the tape!). Since this is just an AS2100, it does not surprise me at all that you can consume 100% of a CPU doing data compression. While this may have changed from some earlier patch level, it's not surprising at all to me. I can't tell whether you have a valid baseline for comparison from your mail. My advice is consider turning off data compression in the host software and let the tape drive do it if it does in fact support hardware data compression (almost ALL of the current modern tape drives do that unless you tell them not to). There is a reference page -- it's either "tz" or "tape" or something of that nature (try "apropos tape" to find it) that should tell you the magic decoder method for tape drive names; I believe that the "c" name is high density with compression enabled for tape drives that do support that mode." ----------------------------------------- >From Johan Brusche: "Don't use the -C switch on vdump !! On the contrary use the tape0c device for compression and NOT the tape0 device. In V4.0x rmt0h is the device WITH compression rmt0m WITHOUT. on V5.x tape0c is the same as rmt0h. The tape drive is doing the compression probably better than the CPU." Thanx to all Mohamed ----- Original Message ----- From: "Mohamed K. Ahmed" Date: Friday, November 22, 2002 12:06 pm Subject: 5.1 vdump 99.9% CPU > Hi all, > > I have a couple of systems that I upgraded to V5.1 patchkit #5 > While I am doing a vdump for some files, I noticed that it takes > longer time than before, and the CPU usage is very very high. > This happens on all systems with V 5.1, may be I have to tweak the > 5.1 version with something that I hope you can help me with. > > Please advice > > Mohamed > > Here is some outputs for one of the systems, it is AS2100 3 CPUs 2 > GB memory, 4GB swap > > > ps -ef: > > root 1648 648 0.0 11:08:00 ?? 0:00.03 sh - > c /c01/oracle/backup/cron_backup > /c01/oracle/backup/syslog/root.log > root 1649 1648 0.0 11:08:00 ?? 0:00.02 [sh] > root 1653 1649 0.0 11:08:00 ?? 0:00.03 > sh /c01/oracle/backup/cronbackup.com > root 1852 628 0.0 11:09:30 ?? 0:00.24 > rpc.ttdbserverd > root 3530 1653 100.4 11:25:54 ?? 37:47.42 vdump - > 0 -u -C -f /dev/ntape/tape0 /c01 > > > # vmstat 2 7 > Virtual Memory Statistics: (pagesize = 8192) > procs memory pages intr > > cpu > r w u act free wire fault cow zero react pin pout in sy > cs us sy id > 7 173 32 133K 105K 16K 686K 73K 231K 0 234K 0 74 67K > 419 27 32 41 > 6 174 32 133K 105K 16K 355 36 107 0 124 0 42 65K > 327 36 31 33 > 6 174 32 133K 105K 16K 264 28 120 0 127 0 44 69K > 326 35 32 33 > > Total swap allocation: > Allocated space: 546667 pages (4.17GB) > Reserved space: 8538 pages ( 1%) > In-use space: 3 pages ( 0%) > Available space: 538129 pages ( 98%) > # psrinfo > 0 on-line since 11/22/2002 11:00:36 > 1 on-line since 11/22/2002 11:00:36 > 2 on-line since 11/22/2002 11:00:36