- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Your favorite SWAP Question
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
05-05-2003 10:42 AM
05-05-2003 10:42 AM
Your favorite SWAP Question
lvol2 8 G Priority : 0
lv_swap1 12 G Priority : 1
If system starts swapping, which will be used first ?
Is there any program or method or utility by which I can bring the system to its knees and start swapping heavy say upto 60 to 80% ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 10:53 AM
05-05-2003 10:53 AM
Re: Your favorite SWAP Question
The lowest priority (0-10) device (here, 'lvol2') is used first. Device swap is also given preference over filesystem swap. Use 'swapinfo -tam' to monitor swap utilization.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 11:01 AM
05-05-2003 11:01 AM
Re: Your favorite SWAP Question
I am not looking for "swapinfo" to monitor swap space..I am looking for soemthing by which I can surely "cause" heavy swapping temporarily.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 11:13 AM
05-05-2003 11:13 AM
Re: Your favorite SWAP Question
I suppose you could write a small C program that does 'malloc()' calls to consume memory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 12:13 PM
05-05-2003 12:13 PM
Re: Your favorite SWAP Question
All you need to do to get the machine swapping is to launch many processes - assuming nproc/maxuprc is large enough so that you don't hit that limit first. Something as simple as:
#!/usr/bin/sh
I=1
while [[ ${I} -lt 1000 ]]
do
sh &
I=$((${I} + 1))
done
A few of these should bring any box to its knees.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 12:22 PM
05-05-2003 12:22 PM
Re: Your favorite SWAP Question
Regards,
Shannon