cancel
Showing results for 
Search instead for 
Did you mean: 

Kernel

SOLVED
Go to solution
Anjaneyulu
Frequent Advisor

Kernel

Hi,

How can we check the physical memory. and How to change the Kernel Parameter. If Kernel is low what is the problem to the server.
5 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: Kernel

Shalom,

For 11.11 and older:

kmtune or sam kernel configuration

11.23 and newer:

kctune or sam or its replacement.

Check physical memory with cstm mstm or cstm. Physical check that is.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
sujit kumar singh
Honored Contributor

Re: Kernel

Phys Mem can be checked using


#dmesg| grep -i physical

Regards

sujit
Pete Randall
Outstanding Contributor

Re: Kernel

My standard, canned answer on memory and other system properties:


If you have Ignite installed, you can use the print_manifest command.

You can also use SAM to display system properties (Sam -> Performance
Monitors -> System Properties).

There are also utilities like "cfg2html" ( http://come.to/cfg2html ),
"nickel" ( ftp://ftp.hp.com/pub/catia/Utils/nickel.shar ) and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ ).

You can also obtain this information from the command line with a
series of little scripts like these:

CPU

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

#Note: for 11.23 RISC, use
MHZ=$(echo itick_per_tick/D \ # echo "itick_per_usec/d" \
| adb -k $HPUX /dev/kmem \ # | adb $HPUX /dev/kmem
| tail -1 \ #For Itanium, use machinfo
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


Number of CPUs

ioscan -k |grep -n processor |wc -l


Support Tools Manager (STM) CPU info:

echo "selclass qualifier cpu;info;wait;infolog" | cstm




RAM


HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi

MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM


Support Tools Manager (STM) RAM info:

echo "selclass qualifier memory;info;wait;infolog" | cstm




You can obtain CPU speed and RAM without CSTM or root access as described by Tom Ferony (under Nancy Rippey's log
in) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889



How you change kernel parameters varies according to what release you have. It could be through SAM or SMH or . . . . . .


Pete

Pete
Patrick Wallek
Honored Contributor

Re: Kernel

>>How can we check the physical memory.

Check how? What do you want to check? Amount? Usage? Something else?

If usage, glace is a good place to start.

>>and How to change the Kernel Parameter.

I usually use SAM.

>>If Kernel is low what is the problem to the server.

It depends on which kernel parameter is too low. There could be many different problems.
Ganesan R
Honored Contributor

Re: Kernel

Hi Anjaneyulu,

To check the physical memory.

#grep Phys /var/adm/syslog/syslog.log
#echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm | grep 'Total Configured'
#echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem --> Will give in pages
#dmesg| grep -i physical

SAM is the preferred way to change the kernel parameters though commands are available.
Best wishes,

Ganesh.