- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- Re: Memory Allocation Failure Error
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
02-21-2011 10:39 PM
02-21-2011 10:39 PM
Memory Allocation Failure Error
One of the process got failed during the process of allocating a small amount of memory (less than 10 MB). I don't know the exact memory usage at that particulat moment,but when I monitored the system continuously after that there's enough memory available. The top output shows that
Total Memory available : 78 GB
Memory Cached : 73 GB
Memory free : 255MB
So I think there was enough memory when the process crashed and it's failed due to some other reason. So I would like to know the different reasons for gettign this error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-21-2011 11:37 PM
02-21-2011 11:37 PM
Re: Memory Allocation Failure Error
Kindly let us know the following:
What is the Operating System/Kernel?
What is the process that failed?
What is the server hardware model?
These things will help us to answer your query.
Thanks.
I work for HPE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-22-2011 02:30 AM
02-22-2011 02:30 AM
Re: Memory Allocation Failure Error
Kernel version is 2.6.9-67
Platform is X86_64
The process was a C++ program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-22-2011 04:00 AM
02-22-2011 04:00 AM
Re: Memory Allocation Failure Error
You are allocating memory using malloc /new right ? or some other wierd way by using sbrk() or something ? . I will take a look at the lidstdc++, linux kernel code and get back to you.
It would be nice to check the errno variable. Theoretical answer is fragmentation :).
--Lucifer Megacruel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-22-2011 08:38 PM
02-22-2011 08:38 PM
Re: Memory Allocation Failure Error
As per your TOP comand output 93% of your RAm used as cached memory. Can you reduce that?
I myself don't know how to reduce cached memory but article may help you out
http://www.scottklarr.com/topic/134/linux-how-to-clear-the-cache-from-memory/
Regards,
Pramod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-23-2011 02:48 AM
02-23-2011 02:48 AM
Re: Memory Allocation Failure Error
So in my case there was enough memory(cache) but it couldn't allocate it to the process. Is there any restriction in allocating memory from cache?
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP