Sponsored Content
Full Discussion: Truss output interpretation
Top Forums UNIX for Advanced & Expert Users Truss output interpretation Post 302921541 by Don Cragun on Saturday 18th of October 2014 03:39:16 AM
Old 10-18-2014
OK. So you're sending a request to a server on a socket and immediately after sending the request, you try to read a response from the server with NDELAY set in the socket options. There is no server and no network that can respond that fast to a request.

There are a couple of obvious things you could try:
  1. Drop the TCP_NDELAY socket option so the read() will wait for data instead of returning immediately if no data is present.
  2. Drop the 1st read() and start with the poll() or pollsys() to wait for data to be present before attempting the read().
I haven't tried to evaluate the arguments to pollsys() to see if your program is waiting for data on a group of file descriptors or just waiting for data on fd #4. If it is just waiting for data on fd #4, I would start by trying #1; but if your program can continue processing if data is available on another file descriptor as well, choose option 2.

With what you have shown us there is no way for us to guess why it is taking more than 24 seconds for the server to respond to your request.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

truss

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)
Discussion started by: fraze
2 Replies

2. UNIX for Advanced & Expert Users

truss output

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)
Discussion started by: happyadm
0 Replies

3. Shell Programming and Scripting

how to use truss?

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)
Discussion started by: wrapster
5 Replies

4. Shell Programming and Scripting

truss output

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)
Discussion started by: ammu
1 Replies

5. Shell Programming and Scripting

need help with truss !

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)
Discussion started by: ali560045
6 Replies

6. AIX

lspath output interpretation

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)
Discussion started by: petervg
8 Replies

7. AIX

Truss output

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)
Discussion started by: Kovacs
1 Replies

8. UNIX for Dummies Questions & Answers

Truss output

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)
Discussion started by: Hara Prasad
0 Replies

9. UNIX for Advanced & Expert Users

Truss output

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)
Discussion started by: Hara Prasad
5 Replies

10. UNIX for Advanced & Expert Users

unable to understand the output of TRUSS command

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)
Discussion started by: NasirAbbasi
2 Replies
inetd.conf(4)						     Kernel Interfaces Manual						     inetd.conf(4)

NAME
inetd.conf - configuration file for inetd DESCRIPTION
On invocation, the daemon reads its configuration information from the configuration file, and possibly at some later time in response to a signal (see inetd(1M)). Each line in the file is treated either as a comment or as configuration information for a given service Comments are denoted by a at the beginning of a line. Noncomment lines contain seven or nine required fields, depending on the service name specified in the first field. Fields are separated by tabs and/or spaces. A line can be continued if it terminates with a Each configuration line in the file contains the following fields in the order indicated: o service name o socket type o protocol o o user o server program o program number (NFS RPC services only) o version number (NFS RPC services only) o server program arguments Fields are constructed as follows: service name if the server is RPC-based (NFS); otherwise, the name of a valid service in file For example, for the service (see remsh(1)), for the service (see rlogin(1)), and for the service (see telnet(1)). socket type or depending on whether the server socket is a stream or a datagram socket, or intended for a program built using the XTI API. protocol Must be a valid protocol as given in for example, or For an XTI service, the protocol field is treated as: o A network_ID for an RPC service, (see netconfig(4)). o A device name in the directory for a non-RPC service. For example, if is specified, the path will be used. For IPv6 applications the protocol is specified as either or Specifies whether should act as a single- or multi-threaded server. Instructs to start one server to handle an incoming request, and cease listening for new requests for the same service until the server that started has exited. Same as but instructs to expect the server to accept the incoming request. Instructs to start one server for each incoming request. Most UDP-based services use for this field, while TCP-based services use user User ID to be used when the server is running. server program Absolute path name of the program executed by when it finds a request on the server's socket. server program arguments Arguments to the server program. The same as in normal use, starting with which is the name of the program. If service name is (NFS RPC services), two extra fields are required. They must appear between the server program field and the server program arguments field: program number Defines a particular service grouping and is unique. version number Version supported by the RPC service. This number can be a single value, or a range, if the program handles multiple versions; for example, or Ranges are separated by a hyphen Version numbers allow RPC protocols to be extended and modified, and make it possible for old and new protocols to share the same server process. Built-in inetd Services The daemon provides several "trivial" services internally by use of built-in routines (see inetd(1M) for a list of these services). To configure an internal service, specify as the server program name, and omit the server program arguments field. EXAMPLES
Configure the service to use TCP protocol, and run the server as user The above is an example of the remsh utility run in the IPv4 mode. To run the above utility in the IPv6 mode, the protocol must be changed to Thus the above configuration is re-written as below to run in mode. Configure the FTP server to timeout an inactive session after 75 seconds. The above ftp service can be run in IPv6 mode using the configuration shown below: Configure an RPC-based service. Note that the service name field contains and two more fields are used: the program number(100008) and version number(1). Configure to use the built-in TCP service. AUTHOR
was developed by the University of California, Berkeley. NFS was developed by Sun Microsystems, Inc. SEE ALSO
inetd(1M), exec(2), fork(2), inetd.sec(4), protocols(4), services(4). inetd.conf(4)
All times are GMT -4. The time now is 08:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy