Operating System - HP-UX
1753809 Members
8094 Online
108805 Solutions
New Discussion юеВ

Re: Emacs 20.7.2 memory problems under HP-UX11i ?

 
Alfred Biwer_1
Occasional Advisor

Emacs 20.7.2 memory problems under HP-UX11i ?

Hi,

we're running in memory limits with Emacs 20.7.2 under HP-UX11i. It doesn't
seem to use the full range of configured data segment ( maxdsiz )

With Emacs 20.4.2 under HP-UX10.20 with equivalent kernel parameter settings
we don't see the problem.

Any hint ?

--
Alfred
8 REPLIES 8
Hartmut Lang
Trusted Contributor

Re: Emacs 20.7.2 memory problems under HP-UX11i ?

Have you checked, if you have any limitations because of swap-space?
Alfred Biwer_1
Occasional Advisor

Re: Emacs 20.7.2 memory problems under HP-UX11i ?

4 GB Swap should be enough, shouldn't it ?
Steven Gillard_2
Honored Contributor

Re: Emacs 20.7.2 memory problems under HP-UX11i ?

Can you provide some more information:

- Is emacs crashing and producing a core file? If so how big is the core file? If not what is the actual error you are getting?
- What are maxdsiz and maxssiz set to?
- How much swap space do you have? (swapinfo -atm)
- How much physical memory do you have?
- Are any other applications having trouble?

Regards,
Steve
Alfred Biwer_1
Occasional Advisor

Re: Emacs 20.7.2 memory problems under HP-UX11i ?


# emacs

Warning: past acceptable memory limits
Killing some buffers may delay running out of memory.
However, certainly by the time you receive the 95% warning,
you should clean up, kill this Emacs, and start a new one.

#
# kmtune | grep max[ds]siz
maxdsiz 0x40000000 - 0X40000000
maxdsiz_64bit 0x40000000 - 0X40000000
maxssiz 0x2000000 - 0X2000000
maxssiz_64bit 0x2000000 - 0X2000000
#
# top

System: sstdw041 Thu Dec 6 15:22:39 2001

Memory: 320816K (220532K) real, 456568K (267828K) virtual, 1101980K free Page# 1/11

TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
pts/3 6142 alfred 154 24 161M 159M sleep 0:09 2.86 2.85 emacs

#
# dmesg

Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 2097152 Kbytes, lockable: 1300412 Kbytes, available: 1500468 Kbytes


# swapinfo -adm
Mb Mb Mb PCT Mb
TYPE AVAIL USED FREE USED START RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2


# uname
HP-UX B.11.11 U 9000/785
Steven Gillard_2
Honored Contributor

Re: Emacs 20.7.2 memory problems under HP-UX11i ?

Only other thing I can think of is a resource limit. Run "ulimit -a" and check the memory limits. If it is limited run "ulimit -Sm unlimited".

Regards,
Steve
Don Morris_1
Honored Contributor

Re: Emacs 20.7.2 memory problems under HP-UX11i ?

One other thing to check - how much of q3 and q4 is taken up by shared libraries? If emacs is trying to load a shared library, mmap a MAP_SHARED segment, etc. and there's just not enough shared address space left the allocation would fail.

Alfred Biwer_1
Occasional Advisor

Re: Emacs 20.7.2 memory problems under HP-UX11i ?

Don,
I'm not absolute sure what you mean with q3/q4.
But the glance values don't show any specials
in regards to shared mem.
(the values: Data RSS 158MB, Text RSS 1,8 MB,
Stack 0,5 MB, Shared Mem 0MB, Other RSS 3MB,
Provete RSS 159MB, Shared RSS 4,6MB)

In the meantime I detected that I'm missing patches which make the sysdef command to
show the correct values (actually sysdef
says, my maxdsiz has only 2 pages ! )

Eventually emacs is using the same
syscalls to determine the available memory and is affected by the same 11i bug.

I should install the patches first !

Thanks Steve, thanks Don.

Alfred Biwer_1
Occasional Advisor

Re: Emacs 20.7.2 memory problems under HP-UX11i ?

patch installed