- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How much of a swap file do you need??
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2005 10:29 PM
тАО04-13-2005 10:29 PM
Re: How much of a swap file do you need??
Generally it will only swap out inactive processes.
If everything is active, then it's oldest segments.
It's best to use swap-file-systems instead of swap-file's for better performance.
You might want to read through the kernel-source documentation (/usr/share/doc/kernel-doc-*/vm/* in paricular), as well as the man pages for 'mkswap'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2005 11:00 PM
тАО04-13-2005 11:00 PM
Re: How much of a swap file do you need??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 01:18 AM
тАО04-14-2005 01:18 AM
Re: How much of a swap file do you need??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 01:29 AM
тАО04-14-2005 01:29 AM
Re: How much of a swap file do you need??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 03:07 AM
тАО04-14-2005 03:07 AM
Re: How much of a swap file do you need??
I was trying to eat all memory by executing script wim which contains :
sleep 1
bash wim
As a normal user : when free mem is 4 MB, the message "Resource temporarily unavailable" is given. Memory cache + buffers was hardly reduced in size. System cpu usage increased up to 7%.
As root : at 4 MB, the memory + buffer cache was slowly deactivated, consuming about 10% in system mode in the beginning, 90% system mode at the end. When it reached 2 MB memory cache, it started taking the 4 MB free memory. Then my telnet was aborted.
I restarted directly on the console to see how it ends. This time, a lot less system mode cpu was used (???). About 10%. But the script needed 15 seconds for 1 execution (when cache + buf were only a few MB).
When the cache reached 1 MB, it started doing something else. I guess pages were taken from processes because the buf + cache counter increased again. Script execution took already 1 min. Then oit started eating the 4 MB free memory but finally the session was killed.
In /var/log/messages I found "out of memory : killed process xxx".
The machine is still running.
What I find strange is that a normal user is refused memory while there is still a lot of cache that could be removed.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 03:40 AM
тАО04-14-2005 03:40 AM
Re: How much of a swap file do you need??
Ended with "too many open files" when swpd of vmstat reached 80 MB.
Wim
- « Previous
-
- 1
- 2
- Next »