Sponsored Content
Top Forums UNIX for Advanced & Expert Users Solaris and Linux system information. Post 302156335 by frank_rizzo on Monday 7th of January 2008 10:08:30 PM
Old 01-07-2008
Quote:
Originally Posted by the_learner
Thanks Porter and frank for your replies !

frank_rizzo, do you mean use something like gprof ?
yes. I would also be curious to see the output of
Code:
truss -c your_program >/dev/null

on each system
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Please help me find out system information

I'm just getting started with unix and would like to know 1) how to tell how big the harddrive is 2) how to tell if there are multiple harddrive installed on the machine 3) a relitavely easy way to tell what programs are installed on the machine. I'm using Sun OS 5.6 Thanks (3 Replies)
Discussion started by: ViperD
3 Replies

2. UNIX for Dummies Questions & Answers

AIX System information

Hi All, I am new to Unix and am working on AIX ( rs6000 ). I am looking for the system info of the unix box like 1. Number of CPUs 2. CPU speed 3. RAM size Your help is much appreciated Thanks rao. (6 Replies)
Discussion started by: rao
6 Replies

3. HP-UX

System Information

How do I get the system information on a HP UNIX server. details like CPU speed, number of processors etc. (4 Replies)
Discussion started by: Olamide
4 Replies

4. HP-UX

HP-UX system information

Hi, I'm writing a script to display a lot of information which describe a server (OS distrib, release, Hardware platform, CPU, HD, S/N...). For Linux side it is ok as you have almost all the information in /proc/cpuinfo, /proc/meminfo... and you can use dmidecode but for HP-UX I didn't find... (13 Replies)
Discussion started by: biker007fr
13 Replies

5. Solaris

How to get system parameters / information on Sun Solaris 5.10

Hello to everyone, i am new to Sun Solaris. i have Solaris 5.10 installed on the X86 platform. i am writing a script which gathers some system information. but i can not find some of the parameter from the system can any one please suggest to way to find these params. shell command will be... (1 Reply)
Discussion started by: nikhil.sigpro
1 Replies

6. Infrastructure Monitoring

How to get the Linux system information?

Hi, How to get the Linux system hardware and software basic information using terminal command ? Here below i have specified some of the information i need. Please have a look at this and guide me. OS Name: OS Version : OS Manufacturer: OS Configuration: OS Build Type:... (6 Replies)
Discussion started by: forumguest
6 Replies

7. Solaris

How to get the Solaris system information?

Hi, How to get the Solaris system hardware and software basic information using terminal command with guest login? Here below i have specified some of the information i need. Please have a look at this and guide me. OS Name: OS Version : OS Manufacturer: OS Configuration: ... (15 Replies)
Discussion started by: forumguest
15 Replies

8. UNIX for Advanced & Expert Users

Linux is kernel and solaris is operating system

Hi I was reading some weblog on the internet and someone made an interesting statement. <quote> Linux is kernel and solaris is operating system </quote> Honestly I don't understand the difference between term kernel and operating system in above quote. Could you explain me more ? thx... (4 Replies)
Discussion started by: presul
4 Replies

9. Programming

Linux/Solaris System Administrator to become a Linux/Solaris System Programmer?

Hi all What is the qualification required by Linux/Solaris System Administrator to become a Linux/Solaris System Programmer as to gain complete knowledge on computers. Thanks (1 Reply)
Discussion started by: Tlogine
1 Replies

10. UNIX for Advanced & Expert Users

Linux Command To Find the System Configuration And Hardware Information

Hello guys. I wanted to find the System Configuration and Hardware Information on one of my servers. Here is part of the cpu info: CPU core info: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 44 model name : Intel(R) Xeon(R) CPU... (2 Replies)
Discussion started by: Ymir
2 Replies
TRUSS(1)						    BSD General Commands Manual 						  TRUSS(1)

NAME
truss -- trace system calls SYNOPSIS
truss [-facedDS] [-o file] [-s strsize] -p pid truss [-facedDS] [-o file] [-s strsize] command [args] DESCRIPTION
The truss utility traces the system calls called by the specified process or program. Output is to the specified output file, or standard error by default. It does this by stopping and restarting the process being monitored via ptrace(2). The options are as follows: -f Trace descendants of the original traced process created by fork(2), vfork(2), etc. -a Show the argument strings that are passed in each execve(2) system call. -c Do not display individual system calls. Instead, before exiting, print a summary containing for each system call: the total system time used, the number of times the call was invoked, and the number of times the call returned with an error. -e Show the environment strings that are passed in each execve(2) system call. -d Include timestamps in the output showing the time elapsed since the trace was started. -D Include timestamps in the output showing the time elapsed since the last recorded event. -S Do not display information about signals received by the process. (Normally, truss displays signal as well as system call events.) -o file Print the output to the specified file instead of standard error. -s strsize Display strings using at most strsize characters. If the buffer is larger, ``...'' will be displayed at the end of the string. The default strsize is 32. -p pid Follow the process specified by pid instead of a new command. command [args] Execute command and trace the system calls of it. (The -p and command options are mutually exclusive.) EXAMPLES
# Follow the system calls used in echoing "hello" $ truss /bin/echo hello # Do the same, but put the output into a file $ truss -o /tmp/truss.out /bin/echo hello # Follow an already-running process $ truss -p 34 SEE ALSO
kdump(1), ktrace(1), ptrace(2) HISTORY
The truss command was written by Sean Eric Fagan for FreeBSD. It was modeled after similar commands available for System V Release 4 and SunOS. BSD
May 12, 2009 BSD
All times are GMT -4. The time now is 01:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy