- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: My swap memory is not at all used.
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
тАО06-25-2008 08:37 PM
тАО06-25-2008 08:37 PM
My swap memory is not at all used.
slxde009# free
total used free shared buffers cached
Mem: 2059576 1996232 63344 228 134648 1490472
-/+ buffers/cache: 371112 1688464
Swap: 775176 0 775176
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 09:29 PM
тАО06-25-2008 09:29 PM
Re: My swap memory is not at all used.
post below kernel parameters value
1. max_queue_depth
2. dirty_ratio
3. swappiness
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 09:39 PM
тАО06-25-2008 09:39 PM
Re: My swap memory is not at all used.
slxde009# sysctl -A|grep -i swap
vm.kswapd = 512 32 8
[root@slxde009]:~
slxde009# sysctl -A|grep -i dirty
[root@slxde009]:~
slxde009# sysctl -A|grep -i max
dev.raid.speed_limit_max = 100000
net.unix.max_dgram_qlen = 10
net.ipv4.inet_peer_gc_maxtime = 120
net.ipv4.inet_peer_maxttl = 600
net.ipv4.igmp_max_memberships = 20
net.ipv4.route.max_size = 262144
net.ipv4.route.max_delay = 10
net.ipv4.tcp_max_syn_backlog = 1024
net.ipv4.tcp_max_tw_buckets = 180000
net.ipv4.tcp_max_orphans = 32768
net.core.optmem_max = 10240
net.core.netdev_max_backlog = 300
net.core.rmem_max = 131071
net.core.wmem_max = 131071
vm.max-readahead = 31
vm.max_map_count = 65536
kernel.threads-max = 16383
kernel.msgmax = 8192
kernel.shmmax = 33554432
kernel.rtsig-max = 1024
fs.super-max = 256
fs.file-max = 8192
[root@slxde009]:~
slxde009# cat /etc/redhat-release
Red Hat Linux release 7.2 (Enigma)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2008 10:22 PM
тАО06-25-2008 10:22 PM
Re: My swap memory is not at all used.
I have seen practically this kind of situation mostly, but doesn't cause any harm.
but you may observ your system closely, what is happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2008 01:56 AM
тАО06-26-2008 01:56 AM
Re: My swap memory is not at all used.
In the free output you sent, you can see that most of the memory used is for cache. Kernel will keep things in this cache to speed-up things, but if memory is needed for a program, it will make some place in RAM for it.
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2008 10:50 AM
тАО06-26-2008 10:50 AM
Re: My swap memory is not at all used.
Linux memory manager uses the free memory as cache to increase performance.
When an application is started the cache will be shrinked and application is given memory from the freed area. Its all dynamic. SO you need not worry. swap will not be used untill you are really out of physical memory.
Newer linux kernel provide you some control over this behaviour by the "swapiness" parameter. Google it and you will know.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2008 11:52 PM
тАО06-26-2008 11:52 PM
Re: My swap memory is not at all used.
anyway, you want your system to use swap? don't you know there is a serious performance impact associated with that.
linux doesn't use swap unless it really has to. be happy, it means more performance to you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2008 12:54 AM
тАО06-27-2008 12:54 AM