From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9695 invoked from network); 9 Apr 1998 15:51:47 -0000 Received: from pike.cdrom.com (204.216.28.222) by mail2.redhat.com with SMTP; 9 Apr 1998 15:51:47 -0000 Received: from localhost (murray@localhost) by pike.cdrom.com (8.8.8/8.8.7) with SMTP id IAA26672; Thu, 9 Apr 1998 08:52:15 -0700 (PDT) (envelope-from murray@pike.cdrom.com) Date: Thu, 9 Apr 1998 08:52:15 -0700 (PDT) From: Murray Stokely To: Engelhard cc: axp-list@redhat.com Subject: Re: slow extracting an archive on Redhat5.0 In-Reply-To: <352CD6C3.71D8545A@cbn.net.id> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 9 Apr 1998, Engelhard wrote: % Does anyone know why extracting an archive on redhat 5.0 % is too slow? % It takes about 9 minutes just to complete command: % tar xvzf linux-2.0.30.tar.gz -C /dir % On redhat 4.2 (on the same machine, as1000a) it does extract % under 10 seconds. I ran into the same exact problem before someone on this list helped me out. It does some kind of weird NIS lookup for each file or something and the way to disable it is to edit your /etc/nsswitch.conf and remove the NIS entries. Mine currently looks like this.. # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Legal entries are: # # nisplus or nis+ Use NIS+ (NIS version 3) # nis or yp Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # [NOTFOUND=return] Stop searching if not found so far # passwd: files shadow: files group: files hosts: files dns services: nisplus [NOTFOUND=return] files networks: nisplus [NOTFOUND=return] files protocols: nisplus [NOTFOUND=return] files rpc: nisplus [NOTFOUND=return] files ethers: nisplus [NOTFOUND=return] files netmasks: nisplus [NOTFOUND=return] files bootparams: nisplus [NOTFOUND=return] files netgroup: nisplus publickey: nisplus automount: files nisplus aliases: files nisplus Murray Stokely