o If O_NDELAY or O_NONBLOCK is set, read() returns -1
and sets errno to EAGAIN.
pollsys then waits until the file can be read. The only possible cause is described above. This is POSIX compliant semantics for the read call. pollsys is a Solaris-ism (a system call entry point) for poll() and select(), I believe. Don Cragun would know definitely.
hi, thanks for the help.
This pertains to a networking process rather than file i/o process. One of my networking application is trying to connect to a server, and this happens. Below is truss output of what happens prior to the wait..
Code:
8094: 0.6895 open("/etc/netconfig", O_RDONLY|O_LARGEFILE) = 4
8094: 0.6896 time() = 1413538243
8094: 0.6901 rctlsys(0, "process.max-file-descriptor", 0x00000000, 0x00428020, 0, 0) = 0
8094: 0.6902 read(4, 0x00421524, 1024) = 1024
8094: # p r a g m a i d e n t\t " @ ( # ) n e t c o n f i g\t 1 . 1
8094: 6\t 9 9 / 1 0 / 2 5 S M I "\n #\n # T h e " N e t w o r k
.....
8094: / t i c o t s s t r a d d r . s o\n
8094: 0.6904 read(4, 0x00421524, 1024) = 0
8094: 0.6905 lseek(4, 0, SEEK_SET) = 0
8094: 0.6905 read(4, 0x00421524, 1024) = 1024
8094: # p r a g m a i d e n t\t " @ ( # ) n e t c o n f i g\t 1 . 1
8094: 6\t 9 9 / 1 0 / 2 5 S M I "\n #\n # T h e " N e t w o r k
8094: C o n f i g u r a t i o n " F i l e .\n #\n # E a c h e
8094: n t r y i s o f t h e f o r m :\n #\n # <
8094: n e t w o r k _ i d > < s e m a n t i c s > < f l a g s ......
8094: / t i c o t s s t r a d d r . s o\n
8094: 0.6907 read(4, 0x00421524, 1024) = 0
8094: 0.6908 close(4) = 0
8094: 0.6909 open("/dev/udp", O_RDONLY) = 4
8094: 0.6910 ioctl(4, SIOCGLIFNUM, 0xFFFFFD7FFFDEDC90) = 0
8094: 0.6911 close(4) = 0
8094: 0.6911 brk(0x0043AAB0) = 0
8094: 0.6912 brk(0x0043EAB0) = 0
8094: 0.6915 so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, "", SOV_DEFAULT) = 4
8094: 0.6916 ioctl(4, FIONBIO, 0xFFFFFD7FFFDEDCB0) = 0
8094: 0.6924 connect(4, 0xFFFFFD7FFFDEE310, 16, SOV_DEFAULT) = 0
8094: 0.6925 getsockname(4, 0xFFFFFD7FFFDEE340, 0xFFFFFD7FFFDEE114, SOV_DEFAULT) = 0
8094: 0.6927 ioctl(4, FIONBIO, 0xFFFFFD7FFFDEE10C) = 0
8094: 0.6928 setsockopt(4, tcp, TCP_NODELAY, 0xFFFFFD7FFFDEE10C, 4, SOV_DEFAULT) = 0
8094: 0.7024 brk(0x0043EAB0) = 0
8094: 0.7025 brk(0x00446AB0) = 0
8094: 0.7027 time() = 1413538243
8094: 0.7028 write(4, 0x0043BE90, 236) = 236
8094: T S H \0\0\0EC020101\0\0\0\0\0\0\0\0\0 "02\0\0 303\0\0 I D
8094: \f %\0\0\0\0 2\0F67F\0\0\0\0 @06FFC99A ;
8094: L D6\0 303 X X X X X X
8094: 01\0\0\0
8094: j\0\0\0\0FF\0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\0\0\0\0\0\0\n\0\0\0
8094: 02\0\0\09E1F\0\001\0\0\001\0\0\0 M Q C C 0 7 0 5 0 0 0 3\0\0\0\0
8094: \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
8094: \0\0\0\0\0\0\0\0\0\0\0\0
8094: 0.7029 read(4, 0x0043BE90, 32766) Err#11 EAGAIN
Is there any network tcp parameters that I can fine tune with regards to EAGAIN errors? My guess is network is slow (may be due to intermediate firewalls/routers etc), hence not able to read in time? Not really sure how to go on from here. Wondering also if performing a traceroute would do any good. any tips on troubleshooting this kind of errors greatly appreciated.
thanks
I'm a DBA so no abuse please! I've for 5 Oracle Forms processes that are spinning and am trying to find out if they're doing anything:
Running HPUX 11.11
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
9 ? 2735 oracle 241 20 24228K 16668K run 2607:29 84.92... (2 Replies)
Hi,
We keep getting hanging Oracle process for our ETL. The dba's asked me to do o truss. All I see is pages and pages of the following,:cool:
pollsys(0xFFFFFFFF7FFF38C8, 1, 0xFFFFFFFF7FFF3800, 0x00000000) = 0
pollsys(0xFFFFFFFF7FFF38C8, 1, 0xFFFFFFFF7FFF3800, 0x00000000) = 0... (0 Replies)
Hi all,
while trying to debug and figure out why a lofiadm command was not working on my script, i came across a cmd called "truss"
all i know about it is that it executes the specified command and produces a trace of the system calls it performs, the signals it receives, and the machine faults... (5 Replies)
Hi
I have to get redirect the truss ouput to file.
I am doing truss -p 12121 >> output.txt
But it still displays on the screen adn output.txt is empty
Can some help how to do this?
Thanks in advance
Ammu (1 Reply)
i have to gather some info about a process and redirect it to a1.txt file. For this i m using truss command
truss -po a1.txt $PID_Detail
where $PID_Detail= 1482944 3362976
--------------------------------------------------------------------------
Below the script:
#!/bin/ksh
for i... (6 Replies)
On my VIo I see the following for my disks:
$ lspath | grep hdisk6
Enabled hdisk6 fscsi0 200600a0b82193f7,4000000000000
Enabled hdisk6 fscsi0 200700a0b82193f7,4000000000000
Enabled hdisk6 fscsi2 200600a0b82193f8,4000000000000
Failed hdisk6 fscsi2 200700a0b82193f8,4000000000000
$ lspath |... (8 Replies)
Hello,
I'm using AIX 5.3.12.5 and trying to understand truss output.
I'm running a job with real time of 16 minutes but only 4 minutes of CPU time. I'm trying to understand what the process is doing.
I'm getting a lot of
kread,
kpread,
kwrite,
kpwrite...
localhost:~ x$ grep... (1 Reply)
Hi,
I want to trace a background java program which runs in infinite loop. I have used truss command for this.
But the program terminated after some hours with below truss output:
Received signal #1, SIGHUP, in lwp_cond_wait()
/1: siginfo: SIG#0
Please let me know what... (0 Replies)
Hi,
I want to trace a background java program which runs in infinite loop. I have used truss command for this.
But the program terminated after some hours with below truss output:
Received signal #1, SIGHUP, in lwp_cond_wait()
/1: siginfo: SIG#0
Please let me know what... (5 Replies)
Hi,
I am trying to set ulimit for soft stack unlimited, but this is not taking effect, after tracing the ulimit -a unlimited command, the below output was generated, which i am unable to comprehend. Could any one help me with this?
prcbap1-r10prod: truss -d ulimit -s unlimited
Tue Dec 30... (2 Replies)