General :: Memory Allocation - How To Disable Overcommit

Oct 17, 2010

I've been looking into memory overcommitting in Linux using /proc/sys/vm/overcommit_memory, and I've read a few articles which don't say the same thing. This doc, under the heading "Going in the wrong direction", goes on to say, "values 1: do overcommit, and 0 (default): don't", but then in the next few lines, it mentions, amongst similar things, that this isn't actually true and that 0 means "guess about how much overcommitment is reasonable". That means that memory overcommit isn't disabled using value 0, right?

It also says that 1 indicates "never refuse any malloc()", with 2 meaning "be precise about the overcommit - never commit a virtual address space larger than swap space plus a fraction overcommit_ratio of the physical memory." The Red Hat magazine, on the other hand states, "if the value is 0, then the kernel checks to determine if there is enough memory free to grant a memory request to a malloc call from an application. If there is enough memory, then the request is granted. Otherwise, it is denied and an error code is returned to the application."

This sounds exactly like disabling overcommit. "If the value is set to 1, then the kernel grants allocations above the amount of physical RAM and swap in the system as defined by the overcommit_ratio value.... If the setting in this file is 2, the kernel allows all memory allocations, regardless of the current memory allocation state." In terms of values 1 and 2, that is the opposite of what the previous doc said, right? What is actually correct, and if it is possible to 'disable' overcommit?

View 1 Replies


ADVERTISEMENT

General :: Application Virtual Address Space Memory Allocation - Memory Does Not Get Free

Apr 20, 2010

I am using malloc and frees a lot in my program. It shows its allocated but when i remove it doesnt show as the memory is removed(I am using the top command to view VIRT memory usage). If this continously grows what would happen to my program (Will it go out of memory?)

View 4 Replies View Related

Programming :: Process Memory Allocation

Apr 30, 2011

I have been assigned a school project on detecting memory leaks in linux processes. I am reading.. but have found it hard and inefficient to go through the very vast documentation not knowing what to really look for. Could you please give me some guidelines on this subject?

View 4 Replies View Related

Programming :: Memory Allocation For Struct In C++?

Mar 30, 2010

How do we allocate memory of struct? what i did was

Code:

int main()
struct amp
{

[code].....

cout <<"The size of 'struct' is"<< sizeof(struct amp)<<"and it is located at"<<struct amp*s = malloc(sizeof(struct amp))<<endl;
it gives me an error---
In funtion 'int main()':
error: expected primary-expression before 'struct'
error: expected ';' before 'struct'

View 9 Replies View Related

Programming :: Explorations In Memory Allocation In ANSI C?

Feb 8, 2011

I'm performing some explorations in terms of memory allocations in ANSI C, using the following compiler:

gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)

and I started to try to make the compiler complain for a huge data structure, so I coded this:

[code]....

I mean, I can always read the man entry for gcc but I rather ask because I can then have interaction...

View 11 Replies View Related

Programming :: The Continuous Memory Allocation Is Larger 128kB For DMA Process?

Jun 3, 2010

I want to allocate the continuous memory larger 128k for DMA process. But i can't used kmalloc() function for allocate the memory larger 128KB. allocate the continuous memory larger 128k for DMA process.

View 1 Replies View Related

Programming :: Write Script To Look For The Presence Of Memory Allocation Calls Without Corresponding?

May 14, 2011

I need to write script to look for the presence of memory allocation calls without corresponding calls to free the memory

View 5 Replies View Related

Fedora Servers :: Virtual Machine Manager Won't Allow Memory Allocation Over 1024

Jan 26, 2010

I'm running Fedora 11 (2.6.30.10-105.2.4.fc11.i686.PAE) 8 GB memory on a AMD Phenom(tm) II X4 965 Processor, 4 core server I just built.The problem I have run into is any virtual machine that has >1024 MB memory assigned to it will not boot. As along as it has 1024 MB or less it boots fine.The symptom you see is a very quick message "Booting from hard disk" the screen then goes blank, you can't login through SSH, and can't ping the network address so I know it's not some crazy video problem hiding the boot process.The attachment are messages from a failed boot attempt.

View 4 Replies View Related

Ubuntu :: Slow Gaming Experience - Increase Graphics Memory Allocation?

Jun 9, 2011

When I play Bejewelled Blitz on Mozilla firefox or Google Chrome,, it is so painfully slow that it is frustrating, I have all the latest updates from Ubuntu installed including the Adobe flashplayer. Is there some way I can increase the graphics memory allocation?

View 5 Replies View Related

Fedora :: User Memory Allocation - Set A Maximum Limit On The Amount Of Ram A User Can Utilize?

Jul 24, 2009

I have a few multi-user servers in an academic laboratory. I am having a problem with some users maxing out the available RAM, causing such sever slowdowns the machine essentially crashes. My servers are Dell Power Edge's running Ubuntu 8.10 Server Edition (Not my choice). I would like to set a maximum limit on the amount of ram a user can utilize. This morning I experimented with setting limits via /etc/security/limits.conf and using ulimit. Neither of them prevented my test program, a simple infinite loop of mallocs, from crashing the server.

View 7 Replies View Related

General :: Ubuntu - Memory Full, Process Memory Usage Doesn't Add Up In Top?

Mar 18, 2011

I have a computer with 16GB of ram. At the moment, top shows all the RAM is taken, (NOT by cache), but the RAM used by the various processes is very far from 16GB.I have seen this problem several times, but I don't understand what is happening.My only remedy so far has been to reboot the machine.

View 1 Replies View Related

General :: Memory Corruption Detected In Low Memory

Aug 22, 2010

This is my first post in these forums. I'm still quite new to Linux (using Mint 9) so please bear with my not-very-articulate question(s)When I boot up and open up a tty terminal I get a message saying "Memory corruption detected in low memory." I've done an extensive google search about the issue and it seems not uncommon. I ran a memtest with no errors returned, so I'm sure that there's nothing really wrong with the memory; apparently it's a bug in the kernel that's causing this.

View 2 Replies View Related

General :: Top Used Memory Versus Ps Processes Memory

Jan 17, 2010

I found from command 'top' that 8GB memory are used. However, using command 'ps' with some options to grep the running processes and then summing up the memory used by the running processes are less than 2 GB. Where has the used memory gone ?

View 7 Replies View Related

General :: Disable Blank Cd Autostart - Disable The Window And The Icon From The Desktop?

Jan 24, 2011

I have Ubuntu 10.04 with Gnome. Whenever I put in a blank CD/DVD an icon on the desktop appears named "Blank CD/DVD" and a window appears asking me what I want to do with it. How do I disable the window and the icon from the desktop?

View 2 Replies View Related

CentOS 5 :: Xen Freezes On PCI Allocation?

May 30, 2010

I've installed XEN according to this tutorial: [URL] on the first XEN boot, it freezes for a very long time on:

allocating pci resources starting at a8000000 (gap: a0000000:5ec00000)

View 4 Replies View Related

Ubuntu Servers :: IP Allocation For Users?

Jan 28, 2010

I have a ubuntu server 8.10 running on my dedicated server. How do I allocate IPs for users ? I have 3 IPs and 3 users running, I want each user to use a Single unique IP for all inbound and outbound traffic Also disallow a user from using the IP other then the one allocated to him. I tried to work out a solution using Iptables, but it does not work I suppose

View 6 Replies View Related

Programming :: 32-bit Executable Getting St9bad_alloc @ 3GB Mem Allocation

Jan 13, 2010

I'm maintaining a c++ application running on a 64-bit RHEL5 server w/32GB ram, but compiled to be a 32-bit executable with g++. The application handles large amounts of data, and has lately been throwing a st9bad_alloc exception. "top" shows the application as dieing right around when VIRT=~3GB, SWAP=~1.5GB and RES=~1.5GB. In the core dump I can see that it's consistently failing to push_back() a piece of data onto a std::vector (which already has hundreds of thousands of objects in it).

I know 4GB is the maximum address space for 32-bit applications. I've learned from this lwn article that a 32-bit kernel reserves 1GB of address space, leaving 3GB for user space. However I'm not running a 32-bit kernel, so that really doesn't answer anything.I wrote a dummy app which called malloc() over and over in a for loop, and it is able to allocate right up to the 4GB before it fails. I don't understand why this one seems to be able to allocate more.

The only difference between the two apps (besides malloc vs std::vector:ush_back), is that the 3GB crashing application attaches to 512mb of shared memory.Anyone have any ideas why this application would be crashing at 3GB? Is there any more diagnostics I should be doing? I would ultimately like to port this to 64-bit for a number of reasons, but it is a big undertaking for my organization, and I'd like to better understand what's going on here.

View 3 Replies View Related

Red Hat / Fedora :: Virtual CPU Allocation - How Much Need To Retain For The The Host

Dec 13, 2010

I plan to use our RHEL6 server as a host for three virtual database servers. When allocating CPU and memory, how much do I need to retain for the the host?

View 3 Replies View Related

Slackware :: PTY Allocation Request Failed On Channel 0

Jan 29, 2011

I'm trying to authenticate with github, however when I try to:

Code:

I've done all the steps mentioned here: http://www.linuxquestions.org/questi...el-0-a-676673/

ie:
Code:

I also restarted sshd. This gave me the following error:

Code:

I found ponce's post about it so I assume it's not an issue. Sshd is running.

View 1 Replies View Related

Ubuntu Installation :: Disk Space Allocation For Drive?

Dec 13, 2010

i was using vista in my laptop, recently installed ubuntu in another drive partition which is 69 GB. but during ubuntu installation i gave only 16GB to ubuntu from this drive. i guess the remaining 69 GB - 16 GB = 53 GB is unused space now.. now how can i allocate all 69GB in that drive to ubuntu ?

View 5 Replies View Related

Ubuntu Servers :: PTY Allocation Request Failed On Channel 0?

Jul 25, 2011

I recently ran into the following problem when trying to ssh into my Ubuntu 11.04 server:

>> ssh user@site.com
PTY allocation request failed on channel 0

I don't know for sure, but I think this happened after one of the latest Ubuntu updates I installed. In case it's of relevance, I'm remoting in from Terminal (Mac OS X 10.7 - Lion). Edit: The problem seems to be with Lion..

[Code]...

View 1 Replies View Related

Programming :: Didn't Change The Original Value Of The Pointer It Was Trying To Use For Allocation?

Feb 8, 2011

A friend working in HPC environments commented me that he had an issue regarding the use of the malloc() function.What issue?He told me that he has had cases in where malloc() instead of returning a NULL pointer on failure, simply didn't change the original value of the pointer it was trying to use for allocation, thus forcing him to initialize pointers to be allocated with malloc() to NULL, so that he could be sure that if malloc() fails, a test for NULL would make sense.

View 12 Replies View Related

CentOS 5 :: Xlib Resource Id Allocation Space Exhausted?

Aug 25, 2009

Now I'm using Centos 5.3. when I let ADP (a EDA Tools) to idle more than 1 hours. The tools will display incorrectly. The per letter will be displayed as pane. So I must close it and re-open it.When the status is displayed, the system always said:xlib resource id allocation space exhausted!Forestall I use Centos 4.7, the system always works well. But I'm using Centos 5.3.How to maintenance it

View 2 Replies View Related

Ubuntu :: Installation With Respect To Mount Point Used And Their Size Allocation?

Sep 18, 2010

sir,i am a begginer so facing problem with installationa(ubuntu)with respect to mount point used and their size allocation.my system config. is 500gb hardisk,4gb ram with windows 7.

View 5 Replies View Related

Server :: MySQL & HTTP Process Allocation To Separate Processors

Sep 29, 2010

I have 2 CPU 8 GB RAM server running MySQL & HTTP server with apps using LAMP architecture. Since last few days we are having some performance problems.While looking at the problem i came to know both mysql and http are almost taking 100% cpu time of a single processor and the second processor is free. redirecting the mysql load to one cpu and http load to the second one? Is it possible? If so how to do it?

View 1 Replies View Related

Programming :: Processor Priority Level For Algorithm For Buffer Allocation

Jan 9, 2010

The algorithm for reading and writing disk blocks use the algorithm getblk to allocate buffers from the pool. In the algorithm getblk, if the kernel removes a buffer from the free list, it must raise the processor priority level to block out interrupts before checking the free list. Why ?Where can i find the C implementation of the above algorithm for buffer allocation in the linux source code ?

View 1 Replies View Related

Fedora Installation :: Recommendation (e.g. Size) For Hard Disk Partition Allocation?

Nov 4, 2010

I want to add Fedora 14 to my triplecore 3GB RAM computer which has windows, Fedora 12 & ubuntu installed. What are the recommendation (e.g. size) for harddisk partition allocation? I can reuse the swap partition, can't I? Should I install Fedora 14 to a single partition (ie. /)? Should I use only ext4?

[Code]...

View 1 Replies View Related

Ubuntu Installation :: Installing 10.04 Beta 2 \ Way To Increase The Space Allocation To Root?

Apr 15, 2010

Tried installing using update-manager -d and received notification that my root does not have adequate space. Removed most of what I can and I am still short 560 mb or so. Even risking the removal of some questionable items I just don't see freeing up this much space to make it happen.Is there another way to install 10.04?Is there a way to increase the space allocation to root?Stupid question but, can I delete the image file for 2.6.31-20 without affecting the 2.6.31-20 version? Even if I can still not large enough to get to the 560 mb.

View 9 Replies View Related

Fedora Hardware :: Checking Computer Memory - Specification Shows 2 GB Of Memory Instead Of GB

Feb 7, 2011

Fedora 14 xfce
HP Mini 210

I am looking to buy some memory for my netbook. Currently I have 1 GB of DDR3 memory. However, the specification says that 2 GB of memory is the max. However, when I do the following it says that 4GB is the max:

[Code].....

View 3 Replies View Related

Server :: Clear Cache Memory ( RHEL 5.1 ) As It Consumes Almost 100% Physical Memory?

Jan 11, 2010

let me know how to clear cache memory ( RHEL 5.1 ) as it consumes almost 100% physical memory.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved