Tag Info

Hot answers tagged

9

It might help to up /proc/sys/vm/page-cluster (default: 3). From the kernel documentation (sysctl/vm.txt): page-cluster page-cluster controls the number of pages up to which consecutive pages are read in from swap in a single attempt. This is the swap counterpart to page cache readahead. The mentioned consecutivity is not in terms of ...


4

You may try adding the programs you most care about to a cgroup and tuning swappiness so that the next time the application runs the programs you add are less likely to be candidates for swapping. Some of their pages will likely still be swapped out but it may get around your performance problems. A large part of it is probably just the "stop and start" ...


3

Swapping allows physical pages to be moved around, in the sense that a page used for one purpose could have its content swapped out then used for another purpose. Under a garden variety virtual memory management system, there is no such thing as fragmentation of physical memory as far as applications are concerned. Each page allocated by an application can ...


3

It seems to me that you can't magically "make the system responsive again". You either incur the penalty or reading pages back from swap space into memory now or you incur it later, but one way or the other you incur it. Indeed, if you do something like swapoff -a && swapon -a then you may feel more pain rather than less, because you force some pages ...


3

valgrind will give you this information, along with a number of other statistics on memory use (and it will tell you about memory leaks etc.). It will slow the program down somewhat, but since yours is a short-lived process it shouldn't be an issue. Here's example output from running ls: ==7051== ==7051== HEAP SUMMARY: ==7051== in use at exit: 351,689 ...


2

MemTotal: Total usable RAM in kilobytes (i.e. physical memory minus a few reserved bytes and the kernel binary code) Source: Torvalds linux github repro (linux/Documentation/filesystems/proc.txt) Check BIOS reserved memory: dmesg | grep BIOS | grep reserved


1

I believe the issue to be related to a Windows mount request gone bad. When the Unix forked process gets the message back from Windows, there appears to be a fumble of sorts. This dominoes into other realms where resource "A" is requested directly or indirectly. I've seen it most recently with respect to VM related events.


1

Can only answer the third question partly, although there is no current documentation on this topic since the switch to 64 bit kernels that I'm aware of. See Inter-Process Communication (IPC) Limits in the Programming section of the AIX 5.3 documentation. You may find something more current in the PDFs in the section Programming for AIX under AIX PDFs, ...


1

Even though the topic is quite old, I want to share another project that emerged from the cgroups Linux kernel feature. https://github.com/gsauthof/cgmemtime: cgmemtime measures the high-water RSS+CACHE memory usage of a process and its descendant processes. To be able to do so it puts the process into its own cgroup. For example process A ...



Only top voted, non community-wiki answers of a minimum length are eligible