Sponsored Content
Operating Systems Solaris Swap completely used with memory free Post 302966920 by jlliagre on Thursday 18th of February 2016 03:25:17 AM
Old 02-18-2016
There is free memory (RAM) because the applications haven't write anything in it.

There is no more swap (assuming you are looking at "swap -s" output), because the applications have malloc'ed something like 80 GB or so and there is no more virtual memory to satisfy new allocations.

The processes are segfaulting because they do not check malloc return value.
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Total Memory/Swap Memory

I need to put a program together to determine the total, available memory and total and available swap on unix machines. I have been searching for weeks and I seem to run into dead ends. Every unix platform I look at has a different way to determine memory info. Any sugggestions or new... (4 Replies)
Discussion started by: ghe1
4 Replies

2. Solaris

swap memory

Hi Can any help me on setting the swap memory ? I would like to set swap memory for installing oracle 9i software. RAM - 512 Mb HDD - 40 Gb OS - Sun Solaris 5.9 (6 Replies)
Discussion started by: sivaramat
6 Replies

3. UNIX for Dummies Questions & Answers

How do I find out how much swap and memory is free?

In Solaris 2.6 and 8 How do I find out how much swap and memory is free? Also how can I see how much memory each process is consuming? Thanks in advance (2 Replies)
Discussion started by: expos
2 Replies

4. UNIX for Dummies Questions & Answers

Add SWAP to free slice

I'm interested in adding more swap space to my current workstation (Solaris 10). I currently have 2 hard drives installed, however the system was only created with 512MB for swap that resides on drive 1. This drive is already sliced up and all slices are being used. The second drive has two... (3 Replies)
Discussion started by: here2learn
3 Replies

5. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies

6. Solaris

how to get the more memory free space (see memory free column)

Hi all, Could please let me know how to get the more memory free space (not added the RAM) in local zone. -bash-3.00# vmstat 2 5 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr s0 s1 s1 s1 in sy cs us sy... (3 Replies)
Discussion started by: murthy76
3 Replies

7. UNIX for Advanced & Expert Users

Out of Memory error when free memory size is large

I was running a program and it stopped and showed "Out of Memory!". at that time, the RAM used by this process is around 4G and the free memory size of the machine is around 30G. Does anybody know what maybe the reason? this program is written with Perl. the OS of the machine is Solaris U8. And I... (1 Reply)
Discussion started by: lilili07
1 Replies

8. UNIX for Dummies Questions & Answers

[Query] Confusion of the Swap when using 'free -m' command

Hi All, I have just installed my first Linux server ( Ubuntu 11.10 ). I am sure I didn't allocate /swap , and double check by 'df -h', yes really no /swap but when I use 'free -m' , returned a "Swap" line as below. total used free shared buffers cached Mem: ... (3 Replies)
Discussion started by: joaming
3 Replies

9. Shell Programming and Scripting

Swap usage by top and free command doesn't match

Its rather confusing, the output of top command is below: The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image." But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Discussion started by: proactiveaditya
3 Replies

10. HP-UX

How much Swap memory do i have ?

here is the output of swapinfo command ==> swapinfo Kb Kb Kb PCT START/ Kb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 8192000 0 8184000 0% 0 - 1 /dev/vg00/swap reserve - 8184000 -8184000 memory ... (5 Replies)
Discussion started by: mohtashims
5 Replies
MEMGUARD(9)						   BSD Kernel Developer's Manual					       MEMGUARD(9)

NAME
MemGuard -- memory allocator for debugging purposes SYNOPSIS
options DEBUG_MEMGUARD DESCRIPTION
MemGuard is a simple and small replacement memory allocator designed to help detect tamper-after-free scenarios. These problems are more and more common and likely with multithreaded kernels where race conditions are more prevalent. Currently, MemGuard can take over malloc(), realloc() and free() for a single malloc type. MemGuard can also guard all allocations larger than PAGE_SIZE, and can guard a random fraction of all allocations. There is also a knob to prevent allocations smaller than a specified size from being guarded, to limit memory waste. EXAMPLES
To use MemGuard for a memory type, either add an entry to /boot/loader.conf: vm.memguard.desc=<memory_type> Or set the vm.memguard.desc sysctl(8) variable at run-time: sysctl vm.memguard.desc=<memory_type> Where memory_type is a short description of the memory type to monitor. Only allocations from that memory_type made after vm.memguard.desc is set will potentially be guarded. If vm.memguard.desc is modified at run-time then only allocations of the new memory_type will poten- tially be guarded once the sysctl(8) is set. Existing guarded allocations will still be properly released by free(9). The short description of a malloc(9) type is the second argument to MALLOC_DEFINE(9), so one has to find it in the kernel source. The vm.memguard.divisor boot-time tunable is used to scale how much of the system's physical memory MemGuard is allowed to consume. The default is 10, so up to cnt.v_page_count/10 pages can be used. MemGuard will reserve vm_kmem_max / vm.memguard.divisor bytes of virtual address space, limited by twice the physical memory size. The physical limit is reported as vm.memguard.phys_limit and the virtual space reserved for MemGuard is reported as vm.memguard.mapsize. MemGuard will not do page promotions for any allocation smaller than vm.memguard.minsize bytes. The default is 0, meaning all allocations can potentially be guarded. MemGuard can guard sufficiently large allocations randomly, with average frequency of every one in 100000 / vm.memguard.frequency allocations. The default is 0, meaning no allocations are randomly guarded. MemGuard can optionally add unmapped guard pages around each allocation to detect overflow and underflow, if vm.memguard.options has the 1 bit set. This option is enabled by default. MemGuard will optionally guard all allocations of PAGE_SIZE or larger if vm.memguard.options has the 2 bit set. This option is off by default. SEE ALSO
sysctl(8), vmstat(8), contigmalloc(9), malloc(9), redzone(9) HISTORY
MemGuard first appeared in FreeBSD 6.0. AUTHORS
MemGuard was originally written by Bosko Milekic <bmilekic@FreeBSD.org>. This manual page was originally written by Christian Brueffer <brueffer@FreeBSD.org>. Additions have been made by Matthew Fleming <mdf@FreeBSD.org> to both the implementation and the documentation. BUGS
Currently, it is not possible to override UMA zone(9) allocations. BSD
August 2, 2010 BSD
All times are GMT -4. The time now is 05:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy