Sponsored Content
Full Discussion: Swap space issue.
Operating Systems HP-UX Swap space issue. Post 302697391 by DGPickett on Thursday 6th of September 2012 05:08:28 PM
Old 09-06-2012
If locally written applications are running the system out of swap space, they can change storage from malloc()/new (make space on the VW which is backed/rolled out on swap) to files attached with mmap() or the JAVA equivalent. The files in mmap are used as backing store, so all RAM is there to cache the access, but no swap is used. Reading and writing are just memory accesses. If an app crashes, the data from RAM pages will be written by VM, which can help debugging. This not only reduces swap space usage, it reduces swap traffic.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

pageing space vs swap space

Hello, I would like to know if there is any difference between the pageing space and the swap space. Thank you in advance. (1 Reply)
Discussion started by: VeroL
1 Replies

2. AIX

swap space / paging space

how do you get the paging space reduced without rebooting the machine ? the os is aix (2 Replies)
Discussion started by: aaronh
2 Replies

3. UNIX for Dummies Questions & Answers

Swap space used???

Plz I need to know how much swap mem free and used i have. I'm using Compaq Tru64 UNIX V5.1A (rev 1885) Thanx (1 Reply)
Discussion started by: Lestat
1 Replies

4. Shell Programming and Scripting

Issue with insufficient swap or memory space

Hi, When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046 exec(2): insufficient swap or memory available. exec(2): insufficient swap or memory available. exec(2):... (2 Replies)
Discussion started by: kavithakuttyk
2 Replies

5. UNIX for Advanced & Expert Users

Issue with insufficient swap or memory space

Hi, When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046 exec(2): insufficient swap or memory available. exec(2): insufficient swap or memory available. exec(2): insufficient swap... (3 Replies)
Discussion started by: kavithakuttyk
3 Replies

6. Solaris

Swap Space

Could someone please explain how you know how much swap space you have on your system. See below: # swap -s total: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available # swap -l swapfile dev swaplo blocks free /dev/dsk/c3t0d0s1 32,25 16... (2 Replies)
Discussion started by: jamba1
2 Replies

7. Solaris

swap space issue

HI All, Recently during oracle install I realized that I did not have enough swap space. So I - 1. Created a swap file "swap_fille1" in /rpool using mkfile - # ls -ltr /rpool total 10487121 drwxr-xr-x 3 root root 3 Dec 21 12:09 boot drwxr-xr-x 2 root root ... (10 Replies)
Discussion started by: sumeet
10 Replies

8. Solaris

No Space Left - Memory/Swap issue

:wall:I'm having a bit of a problem with Solaris 10u8 and one of our applications requesting memory and being told, "no space left". The break down: 24GB Physical Memory 8GB swap at the time of occurance, here's what a memory breakdown looks like: Page Summary Pages ... (21 Replies)
Discussion started by: aychbee45
21 Replies

9. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

10. UNIX for Advanced & Expert Users

Swap space issue

I have Solaris-10 with mutiple zones running in it. My Big Brother monitoring is complaining for very less swap space available, but I am not able to find, what process has consumed its swap space and how to clear it. All zones including global server have almost blank /tmp with very less data.... (3 Replies)
Discussion started by: solaris_1977
3 Replies
memx(8) 						      System Manager's Manual							   memx(8)

Name
       memx - memory exerciser

Syntax
       /usr/field/memx [ -h ] [ -s ] [ -ofile ] [ -ti ] [ -mj ] [ -pk ]

Description
       The memory exerciser spawns processes to exercise memory by writing and reading three patterns: 1's and 0's, 0's and 1's, and a random pat-
       tern.

       You specify the number of processes to spawn and the size of memory to be tested by each process. The first  process  is  a  shared  memory
       exerciser, the remaining are standard memory exercisers. The exerciser will run until the process receives a or a kill -15 pid.

       A  logfile  is  made in for you to examine and then remove. If there are errors in the logfile, check the file, where the driver and kernel
       error messages are saved.

Options
       The options are:

       -h	 Print the help message for the command.

       -s	 Disable shared memory testing.

       -ofile	 Save diagnostic output in file.

       -ti	 Run time in minutes (i).  The default is to run until the process receives a or a kill -15 pid.

       -mj	 The memory size in bytes (j) to be tested by each spawned process.  Must be greater than 4095.  The default is (total-memory)/20.

       -pk	 The number of processes to spawn (k).	The default is 20.  The maximum is also 20.

Restrictions
       The exerciser is restricted by the size of swap space available.  The size of the swap space and the size of internal memory available will
       determine  how  many processes can run on the system.  For example, If there were 16Mbytes of swap space and 16Mbytes of memory, all of the
       swap space would be used if all 20 spawned memory exercisers were running.  In that event, no new processes would be able to run.  On  sys-
       tems  with  large amounts of memory and small swap space, you must restrict the number of memory exercisers and/or the size of memory being
       tested.

       If there is a need to run a system exerciser over an NFS link or on a diskless system there are some  restrictions.   For  exercisers  that
       need  to  write into a file system, such as the target file system must be writable by root.  Also the directory, in which any of the exer-
       cisers are executed, must be writable by root because temporary files are written into the current directory.   These  latter  restrictions
       are sometimes difficult to overcome because often NFS file systems are mounted in a way that prevents root from writing into them.  Some of
       the restrictions may be overcome by copying the exerciser to another directory and then executing it.

Examples
       The following example tests all of memory by running 20 spawned processes until a or kill -15 pid is received.
       % /usr/field/memx
       The following example runs 10 spawned processes, memory size 500,000 bytes, for 180 minutes in the background.
       % /usr/field/memx -t180 -m500000 -p10 &

See Also
       Guide to System Exercisers

																	   memx(8)
All times are GMT -4. The time now is 04:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy