Operating System - HP-UX
1834018 Members
2231 Online
110063 Solutions
New Discussion

Re: Current value for Kernel parameter

 
SOLVED
Go to solution
OLIVA_1
Regular Advisor

Current value for Kernel parameter

Hello,

I would like to know which is the current value for a kernel parameter for instance "maxdsiz".
I would like to know the real value not the set value....

Because I have the error message :
xcalloc: Unable to allocate 4096 blocks of 1 bytes

generated by Squid
My OS is HPUX 11.00


Thanks for your help.



6 REPLIES 6
Simon Hargrave
Honored Contributor
Solution

Re: Current value for Kernel parameter

# kmtune -q maxdsiz

This will achieve what you need.
Marvin Strong
Honored Contributor

Re: Current value for Kernel parameter

kmtune -l -q maxdsiz
Should give you what you are looking for.
Unless I misunderstand your question.
James R. Ferguson
Acclaimed Contributor

Re: Current value for Kernel parameter

Hi Oliva:

# kmtune -l maxdsiz

Regards!

...JRF...
florin_10
Frequent Advisor

Re: Current value for Kernel parameter

Hi

/usr/sbin/kmtune -l -q maxdsiz
l - prints a detailed report;
q - query the value of specified system parameter.

Cheers,
flg
florin_10
Frequent Advisor

Re: Current value for Kernel parameter

Hi

Also following link has some good info in regards with squid config and memory issues
http://wiki.squid-cache.org/SquidFaq/SquidMemory#head-3da538dc64ac0575720762e73a506ccaca6d65f0

Cheers,
Florin
Bill Hassell
Honored Contributor

Re: Current value for Kernel parameter

Squid is not a big memory user by today's standards, perhaps a hundred megs or so. maxdsiz only has one value -- the one reported from kmtune. The default is 64 Megs (far too small for almost any big program) so change it to 1500 Megs. Squid won't come close to using that value. But maxdsiz is not the only limitation. Now check that ulimit is not set to limit memory usage. Type the command:

ulimit -a

to verify that memory is unlimited (which means up to maxdsiz). NOTE: You must be logged in as the Squid user to view the ulimit setting in case ulimit is different for other users.


Bill Hassell, sysadmin