Get swap space on Solaris
Hello
there are different opinions on how to get the swap space on Solaris.
some say: swap -s and the space= used + available
others say swap -l (donno how they get the swap size)
other say 'top' command
others say using format command (in print sub-command)
Could you please advise on how to get the swap size on a solaris machine?
thanks
mpfefer wrote:
Hello
there are different opinions on how to get the swap space on Solaris.That's because there is no single definition of 'swap'. So if you ask for 'swap space', it's going to be interpreted differently by different people.
some say: swap -s and the space= used + availableThis shows you the allocation of the VM space. (Most uses of 'swap' by Solaris commands equate it with total virtual memory).
others say swap -l (donno how they get the swap size)This shows you the allocation of all active swap files.
other say 'top' commandThat can show you both RAM usage and VM/swap usage.
others say using format command (in print sub-command)Format can show you disk partitioning information. Disk partitioning may or may not have any bearing on how you're using swap files. You'd need at least 'swap -l' information (and possibly other commands) to make comparisons. But then again, 'swap -l' is all you'd need in that case anyway.
Could you please advise on how to get the swap size on a solaris machine?What do you mean by 'swap size'?
Darren
Similar Messages
-
We just installed Solaris 8 and allocated 2GB of swap space on the first slice of the disk. When I issue a df -k command, this comes out.
swap 3.5 GB /var/run
swap 3.5 GB /tmp
Is this normal? Where did it get the extra 1.5 GB that it allocated for swap? How about the other 3.5 GB where did it all come from? Can somebody shed light on this? Thanks.That's normal. To quote from the system administration guide:
http://docs.sun.com
�The Solaris environment uses the concept of virtual swap space, a layer between anonymous memory
pages and the physical storage (or disk-backed swap space) that actually back these pages. A
system's virtual swap space is equal to the sum of all its physical (disk-backed) swap space plus a
portion of the currently available physical memory.�
I.e. you probably have ~ 2GB memory in the machine + the 2 GB disk
based swap you've configured gives ~3.5GB virtual swap.
The two mount points /tmp and /var/run are two different filesystems
that allocate space from the same virtual swap space. They share the
swap resource, that is, if you put things in /tmp, not only the space
available in /tmp but also the space available for /var/run decreases. -
Hello to all.
I had an application (a C programme) running on Solaris 2.4. Recently i upgraded to Solaris 8.
I recompiled this application (everything went smoothly). However i have a serious problem i
cannot debug further. This application runs as a daemon. As the time passes it eats all my swap space
available and never releases it. When i run out of swap space, the application crashes and has to be
restarted.
Any ideas what may be the problem ?Sounds like a memory leak.
-
How can i increase the swap space in solaris 11
On Solaris 10 I use to select how much swap space i need while installing
On Solaris 11 it does it automatically? if it does, how can increase the swapYou can easily create a ZFS volume, see "zfs create -V" for ideas. Then using the swap command you can add that space to your swap. You can also delete swap space with "swap -d" even though that does not delete the underlying ZFS volume.
-
Swap space on Solaris 2.7
Hola!
Does anyone know how much swap space is required for WLS on a Solaris
2.7 os?
I'm having swap space errors.
thanksThis is not directly related to WLS. It dends on the amount of memory you wish
to allocate to it and the amount of memory used by other processes on your
system.
Guy
Christopher Opacki <[email protected]> wrote:
Hola!
Does anyone know how much swap space is required for WLS on a Solaris
2.7 os?
I'm having swap space errors.
thanks -
Hi all,
I want to size of the swap space on test server for installing R12 on solaris 10. I searched on metalink but found most of the notes point to database server but not to oracle applications. Any formula,suggestion,previous bad experience plz
Regards
TaherHi Taher,
And i had really hard time installing ADI today. I did install ADI but was not able to configure. I copied the tnsnames.ora file from $TNS_ADMIN(8.0.6 O_H) to c:\orant\network\net80 and c:\orant\network\network. But it says could not connect to database.What is the complete error message?
What is the ADI version?
Did you run "ADI Diagnostic Wizard"? If yes, does it show any error/warning messages?
And there is another directory orawin95, this also contains the network,net80 folders. Should i copy tnsnames.ora to this directory as well. And should i remove sqlnet.ora from these directories as well..You will have to copy the file to both directories. Btw, what does the tnsping return?
Plz any step by step document for installing it. I followed the UVA (University of Virginia) documents and configured it properlu. Still the same problem.There are many documents available and I believe the installation of ADI is strightforward. However, you may see these documents.
Note: 70669.1 - ADI: Troubleshooting Connection Problems with ADI/GLDI
Note: 131070.1 - Guide to Troubleshooting ADI Connection Problems
Regards,
Hussein -
Java and swap space in Solaris 8
Hi,
I've set weblogic java to run on Xmx1534m with swap space 2Gb. It seems like we always encounter out-of-space during jsp compilations. This happens whenever the system crunches on available swap space. Any ideas what to adjust for, such as system paramters.
You can use compiler class instead of external compiler and compile
in-process. I use
public class MyCompiler {
public static void main(String[] args) {
ByteArrayOutputStream err = new ByteArrayOutputStream();
sun.tools.javac.Main compiler = new sun.tools.javac.Main(err, "javac");
if(!compiler.compile(args)) {
throw new RuntimeException(err.toString());
"Paul Chew" <[email protected]> wrote in message
news:3da40212$[email protected]..
> Hi,
>
> I've set weblogic java to run on Xmx1534m with swap space 2Gb. It seems
like we always encounter out-of-space during jsp compilations. This happens
whenever the system crunches on available swap space. Any ideas what to
adjust for, such as system paramters.
>
Dimitri
-
Hi all,
I have prod and test on the same server on AIX 5.3 box. And application is 11i. It's not a good config but thats the way it is here. And for the last 6 months or so we are getting PGSP_KILL error in AIX log files. My server RAM is 8GB and as per Metalink docs, i first set SWAP SPACE to 0.75 times the RAM but still the same problem. Now i have set SWAP SIZE to same size of RAM(8GB). Still getting the same problem mainly when copying files to tape or taking cold backup. After this happens we get famouus FRM-92050 Failed to connect to server: xxxx.xxxx:9000. ans users can't login.
I have gone thru many metalink docs. But plz recommend me to as what swap size should i set. Or find the offending process which is taking more resources. In errpt is shows FNDLIBR is process which is consuming lot of swap space. But i dont know what to do now.
Regards
TaherHi Taher;
Please check below and see its helpful for you
Re: 12.0.4 Upgrade - Performance
Re: Apps R12 now available
SWAP SPACE ON SOLARIS (its your previous post)
Regard
Helios -
Swap space usage in solaris 2.6
Hi
I'm confused abt how the OS uses the swap space in the solaris 2.6. My system has the following configuration.
RAM - 2560 M.
Disk based memory for swap - 513 M (From 'top' / 'swap -l' command)
The 'df -k' over the "/tmp" directory is showing Total around 1.8 GB space for the "swap" volume mounted over "/tmp".
Does it mean that, only 513M of 1.8 GB is allocated for a swap slice?? BTW this is the only swap slice that our system has. So what's happening to the remaining part of 1.8 GB?? Is it getting wasted??
When does the OS exactly starts using the disk memory?? Is it like if the OS finds that the available RAM is not sufficient for its memory operations then it starts using the disk memory??
Any help in clearing my doubts would be highly apreciated.
Rgds
raviHi
Thanks for the response. I understand the concept of anonymous memory. But what is confusing me is the "/tmp" directory. The "df -k" command over the "/tmp" directory is always showing used % as 1%. Also the "swap -s" is never matching with the output of "df -k".. ( I suppose both represent the Virtual attributes of swap space i.e. disk backed memory + portion of the RAM).
for example following is the output of the above commands at a particular instance.
df -k
swap 1908728 1768 1906960 1% /tmp
tcsb.tcs.gs1::/users/tcsuser/tmp-> swap -l
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 32,1 16 1049744 84048
tcsb.tcs.gs1::/users/tcsuser/tmp-> swap -s
total: 589008k bytes allocated + 98672k reserved = 687680k used, 1908920k available
Is there anything i'm missing here??
-ravi -
Solaris: The System does not have the required swap space
I'm trying to install Oracle onto Solaris 9. The installation check fails with the error
The System does not have the required swap space.
I've read the install Guide I get the following when I do the memory checks
bash-2.05# /usr/sbin/prtconf | grep "Memory size"
Memory size: 1024 Megabytes
bash-2.05# /usr/sbin/swap -s
total: 767688k bytes allocated + 117080k reserved = 884768k used, 379040k available
The install guide doesn't say how to increase the Swap Space. I would like to increase the Swap Space just for the duration of the installation. From the install guide I'll need a Swap Space of 1.5 times the Ram on the machine so I'll need 1.5GB Swap Space. Can someone help me out with the required syntax to increase the Swap File Size?Found something on the web that did the trick. Create a few files and then add to your swap.. In case it's of interest to anyone else here's what I had to do
swap -l (lists files in swap)
mkdir /tmp/swap/ (create dir for file to add to swap)
mkfile tmp/swap/swap11 (create file for swap)
swap -a tmp/swap/swap11 (add file to swap)
swap -l (check files in swap) -
Solaris: Increase the swap space
Hi all,
I am the developer, not the DBA, but actually should make some DBA-job.
On our solaris server I should increase the swap space, but I don't know how to make this...
From time to time I get the following error message in system log files:
WARNING: Sorry, no swap space to grow stack for pid 21209 (oracle)After this the database write the ORA-04030 and ORA-07445 errors in the alertlog and restarts.
Here are some data from our system:
oracle@dbs:/etc# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited
oracle@dbs:~# /usr/sbin/prtconf | grep "Memory size"
Memory size: 16384 Megabytes
oracle@dbs:~# swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d60 85,60 16 16790384 15262496
oracle@dbs:~# swap -s
total: 12874104k bytes allocated + 1090112k reserved = 13964216k used, 6825384k available
oracle@dbs:~# top -d1 | grep "total swap"
Memory: 16G phys mem, 972M free mem, 8198M total swap, 7465M free swap
SQL> select * from v$pgastat;
NAME VALUE UNIT
aggregate PGA target parameter 629145600 bytes
aggregate PGA auto target 39321600 bytes
global memory bound 104857600 bytes
total PGA inuse 4089538560 bytes
total PGA allocated 4612293632 bytes
maximum PGA allocated 4746773504 bytes
total freeable PGA memory 359464960 bytes
process count 183
max processes count 198
PGA memory freed back to OS 1.8291E+12 bytes
total PGA used for auto workareas 7504896 bytes
maximum PGA used for auto workareas 108168192 bytes
total PGA used for manual workareas 0 bytes
maximum PGA used for manual workareas 542720 bytes
over allocation count 13757980
bytes processed 2.1787E+13 bytes
extra bytes read/written 3.3085E+11 bytes
cache hit percentage 98.5 percent
recompute count (total) 13774288
SQL> select sum(value)
2 from v$sesstat s, v$statname n
3 where s.statistic# = n.statistic#
4 and n.name like '%ga_memory';
SUM(VALUE)
9401696912Need your help.
Many thanks!Check what is using the memory and if that is necessary.
1. can you safely shrink the SGA ? you would need to check the AWR reports, or recommended sizes.
2. can you safely shrink the PGA ? you would need to check the AWR reports, or recommended sizes)
3. can you reduce the number of processes ? (are there lots of idle processes ?)
4. can you tune sql to use less memory ?
If you can't reduce allocated memory, check if you can add RAM to the server / container.
If you still think you need to increase swap, you may need to add another disk (what is /dev/md/dsk/d60 ?). You can easily google for the Solaris commands to add swap, but if you are not familiar with this process I would not recommend you do it by yourself. Ask Oracle Support to provide the commands, and TEST them on a DEV box, followed by reboots etc to confirm it works. -
What is normal swap space utilization on Solaris 10
Hi all,
I'm running Oracle 11.2 on Solaris 10 on a couple of HP Proliant DL 360 servers.
Both servers have 72G of physical RAM with swap space set to 16G on both of them.
Server A has only one database and total memory free = 30G.
Server A
top: Memory: 72G phys mem, 30G free mem, 16G total swap, 16G free swap
swap -s: total: 27249744k bytes allocated + 13873764k reserved = 41123508k used, 1000552k available
prstat:
NPROC USERNAME SWAP RSS MEMORY TIME CPU
257 oracle 39G 38G 53% 222:11:52 5.6%
31 root 57M 59M 0.1% 414:47:23 0.1%
1 smmsp 1776K 7736K 0.0% 0:00:34 0.0%
6 zabbix 4752K 4092K 0.0% 0:58:31 0.0%
4 daemon 3864K 6456K 0.0% 0:00:35 0.0%Server B has two databases and total memory free = 9G.
Server B
top: Memory: 72G phys mem, 9890M free mem, 16G total swap, 16G free swap
swap -s: total: 29223360k bytes allocated + 627312k reserved = 29850672k used, 16926320k available
prstat:
NPROC USERNAME SWAP RSS MEMORY TIME CPU
157 oracle 28G 28G 39% 15:38:41 0.4%
34 root 58M 65M 0.1% 2:56:57 0.0%
6 zabbix 5580K 4816K 0.0% 0:00:31 0.0%
1 smmsp 1776K 5724K 0.0% 0:00:00 0.0%
5 hpsmh 17M 13M 0.0% 0:00:00 0.0%
4 daemon 3204K 5912K 0.0% 0:00:00 0.0%We are using zfs file system on both servers (which is pretty much the standard these days on Solaris).
Recently I got an OEM alert that my swap space on server A had crossed the 95% threshhold on one of the servers.
But when I checked the server, I found that the average swap space utilization was 97.45.
In fact, what actually happened was my swap utilization momentarily dropped below 95% and then returned back to its normal range above 95% which caused the alert to be triggered.
So this made me wonder why my swap space utilization was so high on server A, or is this just normal for Solaris (v.10).
Checking with server B, I see that my swap utilization is only at 63.6% (even though server B has much more physical memory in use by the two databases than server A).
Main question is why is swap utilization so high on server A, which is configured the same as server B and with less physical memory actually in use.
Next question is should I be concerned.
When I check vmstat, I do not see any paging in or out or blocked processes.
See below for server A
Server A
$ vmstat -S 5 5
kthr memory page disk faults cpu
r b w swap free si so pi po fr de sr s0 s1 s2 s5 in sy cs us sy id
0 0 0 1059868 30507176 0 0 0 0 0 0 2 7 -0 123 30 13742 25008 7264 5 2 93
0 0 0 1024076 30982140 0 0 0 0 0 0 0 23 0 0 122 4433 14793 6854 6 2 92
0 0 0 1030292 30987500 0 0 0 0 0 0 0 0 0 0 102 4055 15049 7014 8 1 91
0 0 0 1044484 30999572 0 0 0 0 0 0 0 0 0 0 129 5905 19196 8127 6 1 93
0 0 0 1028584 30987636 0 0 0 0 0 0 0 0 0 0 114 10611 19925 7259 6 3 90974632 wrote:
Looks like we don't have 'free' on these Solaris boxes (only the man pages).
I'm guessing that free is for linux (since it works fine on my linux boxes).
$ whereis free
free: /usr/man/man3c/free.3cdarn!
Realize that SWAP is purely an OS facility; which is 100% external to Oracle.
The OS send little used or idle processes into SWAP when RAM is scarce resource.
The fact that SWAP is being used is not a Bad Thing, in and of itself.
as long as vmstat shows that BI+BO > SI+SO I would ignore the Chicken Little warnings. -
Can I install Solaris 8 without Swap space?
Can I install Solaris 8 without swap space? or Can I install the swap space on a different hard drive?
Refer Solaris 8 installation guide manuals from this URL:
http://docs.sun.com:80/ab2/coll.214.7/@Ab2CollView?Ab2Lang=C&Ab2Enc=iso-8859-1
Thanks,
Senthilkumar
Developer Technical Support
http://www.sun.com/developers/support -
Swap space - upgrading to solaris 8
Hi
I have Solaris 2.6, 3Gb RAM and
# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s4 32,4 16 527024 378752.
# vmstat
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr f0 m1 m1 m1 in sy cs us sy id
0 0 0 22392 13240 10 379 282 191 219 0 5 0 0 0 8 1381 5898 4631 6 5 89
# sar -r 1
SunOS nwlabs 5.6 Generic_105181-26 sun4u 02/26/02
16:26:54 freemem freeswap
16:26:55 5964 4947043
The Solaris 8 Advanced Installation Guide recommends allocating at least 512Mbytes of swap space before upgrading. Is this referring to swap disk or total swap space?
Do I need to allocate more swap space before upgrading to Solaris 8?
Thanks
DIf you are using the "Installation" cd with Solaris 8 then it requires a minimum of 512 to store the "installer" in swap so it can do the installation. If you forego the use of the Installer CD and start the Installation with Disk 1 of 2 then you don't have to worry about swap issues. The Advanced Installation Guide seems to indicate that you should use the WebStart Installer but it is not needed.
If you are doing an upgrade then it will use what you already have set up as a swap slice. If you are doing an initial install then you can make swap whatever you want. -
My program on Solaris 9 uses huge amounts of swap space
hi,
i have written a program that uses very little memory but seems to use huge amounts of swap space in increments of 1.4GB. The initial install of the Solaris 9 only allocated 500MB of swap for 4GB of Memory. The swap space has now been increased to 16GB but the program seems to use more swap space.
The program uses an api to attach to up to 100 agents and (the peice i wrote) registers a callback to handle events from the agents, a small amount of memory is allacated to hold details of each agent but no more.
Can anyone shed any light on this as this program does run on other platforms with any issues.
sdarcy7are you sure you are release memory, what language are you using?
you can reboot the system and follow the memory process using vmstat and swap -l, after that run your program only one time, and run the command again so the memory after should be the same that the initial before you run your process, if not , you program is collecting memory and is not releasing it.
Good luck,
JoshD
Maybe you are looking for
-
Bug in editing email addresses - Mailto: link doesn't update
Numbers has a bug in the way email addresses work when they are edited. When entering an email address, it automatically is recognized as an email address and is made blue with a mailto: link when you hover over it. But when you edit the address, the
-
SRM 7.0 Invoice Rejection in SRM Portal
Hi, We have come across a scenario where an approver is unable to reject an invoice in their tasks queue. An error message of "/sapsrm/cx_pdo_error Reason for rejection is mandatory" appears However, when they reject a Shopping Cart for example, it w
-
Connect Report output to third party system
Dear Techis Can we connect Report output to third party system and hw? Pls advice............
-
Previous Version of the document after sent to Record Centre
In the current Farm we have 2 web apps Collaboration Record Centre We are sending the document to Record Centre using the Send to Connection and the connection is setup as Move and leave a link . Once the document is sent to Record Centre its leaves
-
I need information about primary cost elements with cost element type 90. Has someone hands-on experience? I try to use this type of cost element linked to a reconciliation (customer) accont.