- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- testing memory
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
тАО01-14-2002 06:44 AM
тАО01-14-2002 06:44 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 06:54 AM
тАО01-14-2002 06:54 AM
Re: testing memory
Use Glance for realtime system statastics. You can install trial version of it incase you havn't purchased the product.
Also sar is a useful utility sar -q
use vmstat 5 30 and look for page out activity .High sustained page _out_ rates; paging in is normal
Goodluck.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 07:29 AM
тАО01-14-2002 07:29 AM
Solution#define NULL 0
main()
{
int ptr;
ptr = NULL;
ptr = malloc(1024*1024*1024);
if (ptr)
perror("Malloc successful");
else
perror("Malloc unsuccessful");
}
Save it as a .c file and compile it.
cc -o
Then execute the
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 07:49 AM
тАО01-14-2002 07:49 AM
Re: testing memory
Oops, malloc only allocates the space, doesnt initialize it. You want to use instead;
#define NULL 0
main()
{
int ptr;
ptr = NULL;
ptr = datalock(1000000000,50000);
if (ptr)
perror("datalock successful");
else
perror("datalock unsuccessful");
sleep(30);
}
This will grab 1GB of ram which and hold for 30secs which you will be able to see from running top. You will need to do the following on your binary first;
chatr +q3p enable
or compile it as 64 bit;
cc +W2.0
but you will need the full ANSI compiler installed for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 07:55 AM
тАО01-14-2002 07:55 AM
Re: testing memory
I would imagine if I want to change the 1gig datalock to a smaller amount I would change the 1000000000 to a smaller number. What is the 50000, and do I need to change this if I change the other number?