i made sure path is clean, i also qualified the paths. time varies from 0.5 seconds to 15 seconds. If i just do a "timex pwd", it always seems to be fast. We are using csh.

itsm-mpk-2% env
HOME=/app/canary
PATH=/usr/bin:/usr/local/bin:/usr/sbin
LOGNAME=canary
HZ=100
TERM=xterm
TZ=US/Pacific
SHELL=/bin/csh
MAIL=/var/mail/canary
DISPLAY=sr1-ubrm-20:55.0
PWD=/app/canary/data/incoming
USER=canary
JAVA_HOME=/usr/jdk/instances/jdk1.5.0
TOOLS=/app/tools
LD_LIBRARY_PATH=
VIM=/app/tools/vim70/share/vim/vim70
CVSROOT=:pserver:[EMAIL PROTECTED]:/export/cvs/cvsroot
EDITOR=vi
ENV=/app/canary/.kshrc
LD_LIBRARY_PATH==
PATH=/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/sbin:/usr/openwin/bin=
itsm-mpk-2% /bin/timex /bin/truss -fdD -o truss.out pwd
/upload/canary/incoming

real       13.57
user        0.01
sys         0.03

itsm-mpk-2% tail truss.out
26078:   0.0541  0.0001 close(3)                                        = 0
26078:   0.0553  0.0012 munmap(0xFF3A0000, 8192)                        = 0
26078:   0.0556  0.0003 mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF3A0000
26078:   0.0560  0.0004 getcontext(0xFFBFF7F8)
26078:   0.0562  0.0002 getrlimit(RLIMIT_STACK, 0xFFBFF7D8)             = 0
26078:   0.0563  0.0001 getpid()                                        = 26078 [25982]
26078:   0.0565  0.0002 setustack(0xFF3A2088)
26078:   0.0568  0.0003 getcwd("/upload/canary/incoming", 1025)         = 0
26078:   0.0573  0.0005 write(1, " / u p l o a d / c a n a".., 24)      = 24
26078:   0.0576  0.0003 _exit(0)


Michael Schuster - Sun Microsystems wrote:
Sean Meighan wrote:
I am not sure if this is  ZFS, Niagara or something else issue? Does someone know why commands have the latency shown below?

*1) do a ls of a directory.  6.9 seconds total, truss only shows .07 seconds.*

[...]

this may be an issue with your $PATH. Do you see the same behaviour if you use absolute paths for the commands?

HTH
Michael

--
Sean Meighan
Mgr ITSM Engineering

Sun Microsystems, Inc.
US
Phone x32329 / +1 408 850-9537
Mobile 303-520-2024
Fax 408 850-9537
Email [EMAIL PROTECTED]

NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to