- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script for stress test memory utilization
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
07-02-2006 10:40 PM
07-02-2006 10:40 PM
Script for stress test memory utilization
Thanks
Freddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 10:48 PM
07-02-2006 10:48 PM
Re: Script for stress test memory utilization
--8<---
#!/usr/bin/perl
use strict;
use warnings;
fork for 1 .. 5;
for (1 .. 10000) {
my $a = "xxxxx" x int rand 1_000_000;
my $b = ~$a;
my $c = reverse $b;
}
-->8---
That should stress mem quite a bit
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 11:42 PM
07-02-2006 11:42 PM
Re: Script for stress test memory utilization
Try this one:
Run some dd commands using as input device different disks:
dd if=/dev/dsk/cXXXX of=/dev/null bs=32768k
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 11:55 PM
07-02-2006 11:55 PM
Re: Script for stress test memory utilization
I couldn't think of a real memory stress that would not somehow also stress the CPU.
When I used this:
--8<---
use strict;
use warnings;
fork for 1 .. 5;
for (1 .. 10000) {
my $a = "xxxx" x 10_000_000;
my $b = reverse $a;
}
-->8---
Memory started sky-rocketing, and the system started swapping. You would need to find the point where the system doesn't swap (yet)
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 11:55 PM
07-02-2006 11:55 PM
Re: Script for stress test memory utilization
I couldn't think of a real memory stress that would not somehow also stress the CPU.
When I used this:
--8<---
use strict;
use warnings;
fork for 1 .. 5;
for (1 .. 10000) {
my $a = "xxxx" x 10_000_000;
my $b = reverse $a;
}
-->8---
Memory started sky-rocketing, and the system started swapping. You would need to find the point where the system doesn't swap (yet)
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 12:11 AM
07-03-2006 12:11 AM