Operating System - HP-UX
1752600 Members
4776 Online
108788 Solutions
New Discussion юеВ

Re: memory management + swap + /usr/lib/dld.sl --not enough space

 
manu_5
Frequent Advisor

memory management + swap + /usr/lib/dld.sl --not enough space

Hi,
I very often get /usr/lib/dld.sl error on HP 11 i machine , have 8 gb of Physical RAM,8 GB SWAP and follwoing kernel params
maxdsiz 0XFFFFF000
maxdsiz_64bit 0X39999999999
maxfiles 4000
maxfiles_lim 4000
maxssiz 0X4D00000
maxssiz_64bit 0X4D00000
maxswapchunks 8193
maxtsiz 0X4000000
maxtsiz_64bit 0X40000000
maxuprc 4096
maxusers 128
nproc (20+32*MAXUSERS)
nstrpty 60
semmni 1024
semmns 2048
semmnu 1024
shmmni 1024
shmmax 0X1A13B8600
semmsl 4100
swapmem_on 1

The loas on the machine is of databases and weblogic .Any clues what i can monotor and let me know any link to manage the memory,swap etc
14 REPLIES 14
Pete Randall
Outstanding Contributor

Re: memory management + swap + /usr/lib/dld.sl --not enough space

You need to look at swapinfo. Run "swapinfo -tm" periodically and whenever you're having performance issues. This will tell you your memory and swap utilization.


Pete



Pete
Michael Steele_2
Honored Contributor

Re: memory management + swap + /usr/lib/dld.sl --not enough space

Could you post the complete errors? Sometimes this is an indication of something other then lack of memory. But it could also be kernel parameters like npty or nfile. But the exact error will pin it down.
Support Fatherhood - Stop Family Law
T G Manikandan
Honored Contributor

Re: memory management + swap + /usr/lib/dld.sl --not enough space

The error is due to
1.Amount of memory and swap available.
If you have 80% used.
What is the value of dbc_max_pct on your kernel.
If it is 50% of memory bring it down.The value depends the amount of RAM on the server.
Make sure that you keep it to around 300MB.

The buffer cache half the memory is too high.

check the individual process usage using
UNIX95= ps -e -o ruser,pid,vsz=Kbytes

to check the process usage by each process.
How is the usage of the swap on the machine
Just do a
swapinfo -ta

you can use glance to monitor the process which is throwing out the error.

2.If the amount of memory used is less and there is quite amount of free memory available then

You have to increase your kernel parameters like
These paramters define the upper limit for a process.
They have default values like 8MB.

maxdsiz
maxdiz_64
maxssiz
maxssiz_64
maxtsiz
maxtsiz_64
ALso make sure that you check these values.

Revert with the amount of swap utilization
manu_5
Frequent Advisor

Re: memory management + swap + /usr/lib/dld.sl --not enough space

Hi TZ Manikandan

UNIX95= ps -e -o ruser,pid,vsz=Kbytes

What is vsz param indicates.
Yogeeraj_1
Honored Contributor

Re: memory management + swap + /usr/lib/dld.sl --not enough space

hi,
[TG - please allow me answer this one! thanks]

from man ps

vsz is for:
The size in kilobytes (1024 byte units) of the core image of the process.

where sz:
The size in physical pages of the core image of the process, including text, data, and stack space. Physical page size is defined by _SC_PAGE_SIZE in the header file

hth
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Bill Hassell
Honored Contributor

Re: memory management + swap + /usr/lib/dld.sl --not enough space

As mentioned, out of space can be related to virtual memory (RAM + swap) but by far the most common reason is the very low setting for maxdsiz. Change this value in the kernel to 500 or 900, rebuild the kernel and reboot (all can be done in SAM). The out of space is not clear enough to specify the issue is a kernel limit and not a memory limit.


Bill Hassell, sysadmin
manu_5
Frequent Advisor

Re: memory management + swap + /usr/lib/dld.sl --not enough space

Hi,
Please clarify the my following doubts.

1)i have two device swaps of 4000 and 4096 kb each and are on priority 1 and 0 respectively.When I try change priority of both swaps to 1 through SAM ,it does that but again the swapinfo -atm command it is the the same as before.Do i need to reboot.??

2)what is the order in which paging will happen .As per the man page it says the memory will be paged at last and device sawp will be paged first .But if see swapinfo in my case ..it says on memory being used not the device swap...

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 4000 0 4000 0% 0 - 0 /dev/vg00/lvolswap
reserve - 2262 -2262
memory 6548 1214 5334 19%
total 14644 3476 11168 24% - 0 -


Plus the error /usr/lib/dld.sl --not enough space whenever i try to run SAM , or any java application.This often comes

Pete Randall
Outstanding Contributor

Re: memory management + swap + /usr/lib/dld.sl --not enough space

Manu,

I wouldn't worry about swap priority as you're not using any swap: it's at 0% utilization. That's good!


Pete


Pete
A. Clay Stephenson
Acclaimed Contributor

Re: memory management + swap + /usr/lib/dld.sl --not enough space

You need to understand the pseudoswap (memory) is NEVER actually used for swap. It is simply a kernel bookeeping device that allows systems to run with less swap than physical memory --- and still be able to use all the memory. Without it, the system wqould only allow processes to grow up to the total of device swap eventhough the system is never swapping.

In your case, /dev/vg00/lvolswap at priority 0 is used completely before lvol2 (at priority 1) is used at all.

If these two LVOLS are on the same physical disk then you should leave the swap priorities as they are; if they are on diffrent physical devices then you can edit /etc/fstab and change the priority of the secondary swap to 1 and reboot. The swap will then be interleaved between the two areas -- I wouldn't bother because when you need to worry about this you are already performing so poorly that it hardly matters.

As has been said, it appears that your REAL problem is maxdsiz.
If it ain't broke, I can fix that.