Message: 1
Date: Tue, 08 Nov 2005 13:42:01 -0600
From: Marcos Rene <[EMAIL PROTECTED]>
Subject: [Solaris-Users] Re: Solaris-Users Digest, Vol 34, Issue 3
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi List.
My problem is the next: my dir. /tmp (swap) it was to 100%:
swap 1146136 1146136 0 100% /tmp
When happens that(while was possible execute commands) , i do execute rm
command for all files of tmp successful, but when display the FS with df
-k sintaxis, the dir /tmp still to 100%,
without can executes any command additional later. (can´t fork(process)
execute).
How can i do free swap area without reboot my server??
Greetings.
Marcos
------------------------------
Message: 2
Date: Mon, 7 Nov 2005 12:05:21 -0800 (PST)
From: Darren Dunham <[EMAIL PROTECTED]>
Subject: Re: [Solaris-Users] swap free
Is there a way to release swap without reboot a server???, on anyone
solaris version can i do that??
I'm not sure exactly what you mean by "release swap" (I can think of a
couple of different possibilities) but I'll take a guess. Can you
provide some more details? (output of swap -l, swap -s, and uname -a
may be helpful also).
Under normal circumstances, the majority amount of virtual memory in use
on a machine is held by one or more applications. Terminating those
applications will release the memory. Rebooting helps because it
terminates all applications.
In addition, you can add additional swap file locations on the fly with
'swap -a <filename>', which while not releasing swap will provide more
so that more swap can be allocated by applications.
'ps', 'prstat', and 'top' are all handy for beginning your investigation
into which applications have allocated how much memory.
From: "Tim Evans" <[EMAIL PROTECTED]>
From the swap man page:
-d swapname
Delete the specified swap area. This option can only
be used by the super-user. swapname is the name of the
swap file: for example, /dev/dsk/c0t0d0s1 or a regular
file. swaplow is the offset in 512-byte blocks into
the swap area to be deleted. If swaplow is not speci-
fied, the area will be deleted starting at the second
page. When the command completes, swap blocks can no
longer be allocated from this area and all swap blocks
previously in use in this swap area have been moved to
other swap areas.
------------------------------
Message: 2
Date: Tue, 8 Nov 2005 10:57:22 -0800 (PST)
From: Darren Dunham <[EMAIL PROTECTED]>
Subject: Re: [Solaris-Users] Re: Solaris-Users Digest, Vol 34, Issue 3
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1
Hi List.
My problem is the next: my dir. /tmp (swap) it was to 100%:
swap 1146136 1146136 0 100% /tmp
In this example you've got about 1GB of virtual memory in /tmp that
cannot be used by other programs. /tmp is very fast, but using it for
too much data will cause problems.
You don't give any other information about the system, so it's difficult
to guess if 1GB is big or small on this system.
My application don´t use more than 500MB of swap, is ascertainable
When happens that(while was possible execute commands) , i do execute rm
command for all files of tmp successful, but when display the FS with df
-k sintaxis, the dir /tmp still to 100%,
Did the files really go away? Does df still show 1GB in use?
Yes it is. Later free this files, still to 100% full and don´t can
execute anyone command more.
without can executes any command additional later. (can´t fork(process)
execute).
How can i do free swap area without reboot my server??
Find the real culprit. If a process has allocated all the system
memory, you have to get it to release the memory or kill it. 'ps' is a
good place to start.
_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users