bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: awk 3.1.3 very slow


From: Stepan Kasal
Subject: Re: awk 3.1.3 very slow
Date: Fri, 20 Aug 2004 14:53:51 +0200
User-agent: Mutt/1.4.1i

Hello,
  about your problem, as described below.  Please note that it's not the
awk process in fact, which spends so much time:

> real    0m6.756s
> user    0m0.001s
> sys     0m0.006s

The processes haven't spent the time neither in userspace, nor in kernel.
It's only the real tim which is so big.  That means that an external problem
has caused the delay.

Perhaps your system had to contact the nfs file system on startup and
it was slow...

What if you try to run the commands in the oposite order.  Perhaps only the
first one on the nfs dir is slow, no matter what the command does.

In any way, this doesn't look as an awk bug, so we cannot help you with it.

Hope this helps,
        Stepan Kasal

On Fri, Aug 20, 2004 at 12:04:30PM +0200, Stefan Fink wrote:
> the problem is that one example is fast the other slow in 3.1.3. Both examples
> in 3.1.1 are fast. On the same machine. LC_ALL is "C". The Input-File is the 
> echo in front of the two examples.
> ...
> test ... hm .. both fast ... oh
> When we are on a mounted nfs filesystem then the awk work in example fast and
> in the other slow. No Input comes from the nfs filesystem (is mounted by 
> automount). 
> 
> mount
> -------------------------
> ...
> file:/disk_2 on /net/file/disk_2 type nfs 
> (rw,nosuid,nodev,hard,intr,rsize=8192,wsize=8192,noac,addr=xxxxxxxxxxx)
> file:/disk_5 on /net/file/disk_5 type nfs 
> (rw,nosuid,nodev,hard,intr,rsize=8192,wsize=8192,noac,addr=xxxxxxxxxxx)
> file:/disk_6 on /net/file/disk_6 type nfs 
> (rw,nosuid,nodev,hard,intr,rsize=8192,wsize=8192,noac,addr=xxxxxxxxxxx)
> file:/etc on /net/file/etc type nfs 
> (rw,nosuid,nodev,hard,intr,rsize=8192,wsize=8192,noac,addr=xxxxxxxxxxx)
> file:/home on /net/file/home type nfs 
> (rw,nosuid,nodev,hard,intr,rsize=8192,wsize=8192,noac,addr=xxxxxxxxxxx)
> file:/srv on /net/file/srv type nfs 
> (rw,nosuid,nodev,hard,intr,rsize=8192,wsize=8192,noac,addr=xxxxxxxxxxx)
> 
> pwd
> ---------------------------------------
> /net/file/disk_2/granit/save
> 
> prompt
> ------------------------------------------
> address@hidden:/net/file/disk_2/granit/save>time echo "10.08.04 12:46:27 
> uk:/home/uk/cm_cfg.shost/makro/local/elektro/scc" |  /usr/bin/awk -F: 
> '{ print $3; exit }' | /usr/bin/awk '{ print $NF; exit }'
> uk
> 
> real    0m6.756s
> user    0m0.001s
> sys     0m0.006s
> address@hidden:/net/file/disk_2/granit/save>time echo "10.08.04 12:46:27 
> uk:/home/uk/cm_cfg.shost/makro/local/elektro/scc" | /usr/bin/awk -F: 
> '{ pos=index($3," "); print substr($3,pos+1); exit }'
> uk
> 
> real    0m0.017s
> user    0m0.002s
> sys     0m0.003s
> 
> awk on other machine over mount (/net/mg/usr/bin/awk)
> ----------------------------------------
> address@hidden:/net/file/disk_2/granit/save>time echo "10.08.04 12:46:27 
> uk:/home/uk/cm_cfg.shost/makro/local/elektro/scc" 
> |  /net/mg/usr/bin/awk -F: '{ print $3; exit }' | /net/mg/usr/bin/awk 
> '{ print $NF; exit }'
> uk
> 
> real    0m0.034s
> user    0m0.002s
> sys     0m0.008s
> 
> 
> hm ... i understand nothing ... what is the problem ? ... nfs ... or ?????
> 
> sorry for so stupid questions
> 
> -- 
> 
> Gru?
>   Stefan Fink
> 
> GranIT GmbH
> Stefan Fink
> Kreuzem 2
> 72762 Reutlingen
> Germany
> 0712134920
> www.granit.de
> address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]