Thursday, January 15, 2009

Linux Command - Strace

strace

strace [options] command [arguments]

Trace the system calls and signals for command with optional arguments. strace shows you how data is passed between the program and the kernel. With no options, strace prints a line for each system call. It shows the call name, given arguments, return value, and any generated error messages. A signal is printed with both its signal symbol and a descriptive string. As it shows the data transfer between user and kernel-space, strace is very useful as both a diagnostic utility for system administrators and a debugging tool for programmers. By default, the output is written to standard error.

Options

-a n

Align the return values in column n. The default is 40.

-c

Count system calls, errors, signals, and time and provide a summary report when the program has ended.

-d

Debug mode. Print debugging information for strace on stderr.

-e [keyword=] [!] values

Pass an expression to strace to limit the types of calls or signals that are traced or to change how they are displayed. If no keyword is given, trace is assumed. The values can be given as a comma-separated list. Preceding the list with an exclamation point (!) negates the list. The special values all and none are valid, as are the values listed with the following keywords.

abbrev=names

Abbreviate output from large structures for system calls listed in names.

read=descriptors

Print all data read from the given file descriptors.

signal=symbols

Trace the listed signal symbols (for example, signal=SIGIO,SIGHUP).

trace=sets

sets may be a list of system call names or one of the following:

file

Calls that take a filename as an argument.

ipc

Interprocess communication.

network

Network-related.

process

Process management.

signal

Signal-related.

raw=names

Print arguments for the given system calls in hexadecimal.

verbose=names

Unabbreviate structures for the given system calls. Default is none.

write=descriptors

Print all data written to the given file descriptors.

-f

Trace forked processes.

-ff

Write system calls for forked processes to separate files named filename.pid when using the -o option.

-h

Print help and exit.

-i

Print the current instruction pointer with each system call.

-o filename

Write output to filename instead of stderr. If filename starts with the pipe symbol |, treat the rest of the name as a command to which output should be piped.

-O n

Override strace's built-in timing estimates, and just subtract n microseconds from the timing of each system call to adjust for the time it takes to measure the call.

-p pid

Attach to the given process ID and begin tracking. strace can track more than one process if more than one option -p is given. Type Ctrl-C to end the trace.

-q

Quiet mode. Suppress attach and detach messages from strace.

-r

Relative timestamp. Print time in microseconds between system calls.

-s n

Print only the first n characters of a string. Default value is 32.

-S value

Sort output of -c option by the given value. value may be calls, name, time, or nothing. Default is time.

-T

Print time spent in each system call.

-t

Print time of day on each line of output.

-tt

Print time of day with microseconds on each line of output.

-ttt

Print timestamp on each line as the number of seconds and microseconds since the Epoch.

-u username

Run command as username. Needed when tracing setuid and setgid programs.

-V

Print version and exit.

-v

Verbose. Do not abbreviate structure information.

-x

Print all non-ASCII strings in hexadecimal.

-xx

Print all strings in hexadecimal.


For more details u can visit following links -

http://www.linuxdevcenter.com/linux/cmd/cmd.csp?path=s/strace (original post)

http://linux.die.net/man/1/strace


Linux - Top Command

NAME

top - display top CPU processes

SYNOPSIS

top [-] [d delay] [p pid] [q] [c] [C] [S] [s] [i] [n iter] [b]

DESCRIPTION

top provides an ongoing look at processor activity in real time. It displays a listing of the most CPU-intensive tasks on the system, and can provide an interactive interface for manipulating processes. It can sort the tasks by CPU usage, memory usage and runtime. can be better configured than the standard top from the procps suite. Most features can either be selected by an interactive command or by specifying the feature in the personal or system-wide configuration file. See below for more information.

COMMAND-LINE OPTIONS

-d
Specifies the delay between screen updates. You can change this with the s interactive command.
-p
Monitor only processes with given process id. This flag can be given up to twenty times. This option is neither available interactively nor can it be put into the configuration file.
-q
This causes top to refresh without any delay. If the caller has superuser privileges, top runs with the highest possible priority.
-S
Specifies cumulative mode, where each process is listed with the CPU time that it as well as its dead children has spent. This is like the -S flag to ps(1). See the discussion below of the S interactive command.
-s
Tells top to run in secure mode. This disables the potentially dangerous of the interactive commands (see below). A secure top is a nifty thing to leave running on a spare terminal.
-i
Start top ignoring any idle or zombie processes. See the interactive command i below.
-C
display total CPU states instead of individual CPUs. This option only affects SMP systems.
-c
display command line instead of the command name only. The default behavior has been changed as this seems to be more useful.
-H
Show all threads.
-n
Number of iterations. Update the display this number of times and then exit.
-b
Batch mode. Useful for sending output from top to other programs or to a file. In this mode, top will not accept command line input. It runs until it produces the number of iterations requested with the n option or until killed. Output is plain text suitable for display on a dumb terminal.

For more details - visit the original post at
http://linux.about.com/od/commands/l/blcmdl1_top.htm

Wednesday, January 7, 2009

Download Desktop Sidebar 1.05 for free

Download free Desktop Sidebar 1.05 for free. The software provide many gadgets like clock, calender, news feed, weather reporter, slideshow, music player and many more.
So what are you waiting for.Go on downding the software for free from the link below and customize your desktop

http://www.brothersoft.com/desktop-sidebar-download-63968.html



Download for free ebook of Algorithms and Data Structures in VLSI Design ©2005 (Christoph Meinel/Thorsten Theobald)

Click the following link to download 
for free in pdf form




free download Desktop Sidebar 1.05

Download Desktop Sidebar 1.05 for free from the link below and customize your desktop.
Added with many gadgets like clock, weather report, Slideshow, CPU performance, Newsroom, Mail Checker, Messanger, Music player and many more.
Download it now and customize your desktop mwith many added gadgets.

Click the following link and you will be directed to the downloading page.

Free download Desktop Calendar 0.42b

Download Desktop Calendar 0.42b for free from the link below and customize your desktop.
You can add reminders and alerts for one time as well as for every year.

Click the following link and you will be directed to the downloading page.

http://www.brothersoft.com/desktop-calendar-download-12542.html

Free Net Speed Booster 4.3.0.0

Net Speed Booster is a utility to help you keep your system healthy and responsive. This program is a package of 3 utilities, a network pinger - which prevents you from being disconnected by your ISP (Internet Service Provider) with. full control over the Ping interval, host, and sound. Net Speed Booster - optimizes the way your Windows PC can send and receive information across the Internet in real time to prevent fragmentation of data transfers. Free Mem utility - allows you to free physical memory or RAM on your computer. Just select a target amount of free memory and click the Optimize button. You can also schedule it to automatically optimize RAM when it falls below a certain target level. While the actual maximum transfer speed of your Internet connection cannot be changed except by upgrading your hardware, SC Net Speed Booster can increase the performance of your existing modem/network hardware by optimizing Windows modem/network settings to maximize the efficiency of your current hardware. By default, your Windows PC does not manage Internet connections as optimally as possible. SC Net Speed Booster allows you to change certain Windows Registry settings that affect Internet connection speed through a simple, intuitive interface, boosting your Internet performance. It's the easiest, fastest way to boost your connection speed. Best of all...it' free! Features: 1)Offers more than 200 Windows operating systems registry tweaks 2)Boost overall performance and data transfer rates up to 500% 3You can choose manual or automatic configuration settings 4)All connection types are supported (Cable, LAN,DSL,ISDN,T1,T2,T3 Satellite and Dial-Up), as are all software and hardware adapters. 5)Easily restore your default Windows settings with the included back-up option 6)Comprehensive help file with definitions of various terms and settings is included.

Requirements: 16 MB RAM 10 MD Disk Space,windows 98,2000,NT,XP



Click on the link below to download it for free..


http://www.download3k.com/Internet/Download-managers/Download-SoftwareClub.ws-Free-Net-Speed-Booster.html

Sunday, January 4, 2009

TUTORIAL TO START WORKING ON XAMPP

first of all extract the xampp folder and copy it to the drive where u want .xampp folder must be the first folder of the drive in which u r installing it.then double click on the xampp control panel button in this folder....click the services u want to run & start working.to test:-that my web server is working chk d link http://localhost/xampp/the xampp folder has a sub folder htdocs whatever u have in this folder is directly accesible via http://localhost/for ex. any folder in htdocs named ravi can be accessed by http://localhost/raviso now start ur work with xampp.......