General - HPUX FAQs

Useful site which lists down the HPUX related FAQs like

URL: comp.sys.hp.hpux


  1. How can I tell if I have a 32-bit or 64-bit kernel?

  2. How do I determine if a system supports a 32 and/or a 64-bit kernel?

  3. How do I set per-process limits?

  4. Where do I get HP-UX patches?

  5. How can I tell what patches are in the kernel?

...

Labels: , ,

Posted by - at 2:29 AM | 0 comments read on

C C++ Programming - Useful Tracing and Profiling Tools

I have been searching for few tracing and profiling tools these days. Tracing tools are my fav because we will be able to debug it while it is running and can get an overview of what is happening inside a.out. esp while learning the flow of a prog.

I found the given below tools and links very useful...


Labels: , , , , , ,

Posted by - at 12:02 AM | 1 comments read on

Shell Script - Memory Watch for UNIX Platforms

Simple memory profile script for UNIX/LINUX platforms.


#!bin/sh

PROCCHECKDELAY=1
RUNCHECKDELAY=2
PAGEROWS=80
PROCNAME=$1
PROCID=

if [ $# -ne 1 ]
then
echo give program name to watch;
exit 1;
fi

stat_process()
{
PROCID=
_mypid=
while [ true ]
do
_mypid=`ps -e 2>/dev/null|grep $1|head -n1|awk '{ print $1 }'`;
if [ -z "$_mypid" ]
then
echo "$1 is not running"
else
break;
fi
echo "recheck after $RUNCHECKDELAY seconds";
sleep $RUNCHECKDELAY;
done
PROCID=$_mypid;
}

i=$PAGEROWS;
while true;
do
stat_process $PROCNAME;
if [ $i -eq $PAGEROWS ] ;
then
i=0;
UNIX95= ps -p $PROCID -o vsz,pid,ruser,args 2>/dev/null
else
UNIX95= ps -p $PROCID -o vsz,pid,ruser,args 2>/dev/null|tail +2
fi
if [ ! -z "$PROCID" ]
then
i=`expr $i + 1`;
fi
sleep $PROCCHECKDELAY;
done;


please post your valuable comments and suggestions.

Labels: , , , , ,

Posted by - at 3:17 PM | 0 comments read on

Archives

Links