- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: shared memory and memory free reported by swap...
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
Forums
Discussions
Discussions
Discussions
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
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-21-2004 01:14 AM
04-21-2004 01:14 AM
shared memory and memory free reported by swapinfo.
I always thought the shared memory never is swapped but now I'm not sure.
An Oracle DB runs in my box. DB uses shared memory (SGA). Its size is near 1 GB (I removed non request lines from the following output) :
# ipcs -ma
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
Shared Memory:
m 538627 0xb87b04f4 --rw-r----- oracle dba oracle dba 23 1094467584 5459 5807 14:33:40 14:38:45 13:56:03
but "swapinfo -tam" reports
# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 5 1019 0% 0 - 1 /dev/vg00/lvol2
dev 1024 5 1019 0% 0 - 1 /dev/vg00/lvol13
reserve - 1156 -1156
memory 1472 383 1089 26%
total 3520 1549 1971 44% - 0 -
How is it possible ? If 1472 MB are available to user processes and a user process locks near 1024 MB (I always understood shared memory is not swapable and "free memory" in swapinfo output meant "memory for hold swapable pages") ... how is it possible there are 1089 MB free ?...
Kmeminfo reports:
Physmem = 524288 Available physical memory:
Freemem = 50605 Free physical memory
Used = 473683 Used physical memory:
System = 154440 by kernel:
Static = 34379 for text and static data
Dynamic = 66586 for dynamic data
Bufcache = 52428 for file-system buffer cache
Eqmem = 23 for equiv. mapped page pool
SCmem = 1024 for system critical page pool
User = 308949 by user processes
Uarea = 2372 for thread uareas
Disowned = 13474 disowned pages
Physical Memory: 524288 pages (2 GB)
Memory used by System: 154440 pages (600 MB).
Then, initial memory amount for user processes are near 1450 MB (it matches the field "Mb AVAIL" in swapinfo output).
Later, when Oracle process gets near 1 GB of shared memory... the number of free memory reported by swapinfo should be decreased in 1 GB, shouldn't it ?
I also find near 1 GB of 'reserved' memory... but "shared memory" is locked and never swaped, isn't it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 01:18 AM
04-21-2004 01:18 AM
Re: shared memory and memory free reported by swapinfo.
If pages are locked, they will not be swapped. The locking mechanism is OS dependant.
Cheers
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 01:51 AM
04-21-2004 01:51 AM
Re: shared memory and memory free reported by swapinfo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 02:06 AM
04-21-2004 02:06 AM
Re: shared memory and memory free reported by swapinfo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 02:20 AM
04-21-2004 02:20 AM
Re: shared memory and memory free reported by swapinfo.
I have other box (2 GB) where another Oracle DB is running and this problem doesn't ocurr (memory used is near 100%).