Tag Info

New answers tagged

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, ...


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

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 ...


0

Use GNU time (which has many more features that the builtin's "time" from bash) : $ sudo apt-get install time $ \time prog >/dev/null 0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 2380maxresident)k 0inputs+0outputs (0major+119minor)pagefaults 0swaps The \time escaping explicitly asks not to use the builtin, /usr/bin/time would work too. ...


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 ...


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.


0

I've tried the same on my system and even if some memory was released, it wasn't 0. I guess, the remaining memory used is from working files that can't be freed. In my system, I've released from 2G to 1G and all the used cached memory was from running programs. To check who is using this memory, install https://code.google.com/p/linux-ftools/ (if you are ...


0

I think that you need to use following method.I am showing an example : Consider that I need to know information about firefox browser that is running on my Linux Box. I will follow below steps : Get PID of firefox : [shubham@system-dev ~]$ ps -aux | grep firefox Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ shubham ...


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


0

These two options can be used to limit number of CPU cores available to a cgroup: cpu.cfs_period_us cpu.cfs_quota_us cfs_period_us defined how often this needs to be enforced cfs_quota_us defines how many us should the cgroup receive during each period. So if you specify cfs_quota_us as N times the amount of cfs_period_us the cgroup will receive N cores.


0

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 ...


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 ...


-1

Compromise answer: it depends on the meaning of "should". Do you need a swap partition in the sense that something bad will happen if you don't have one under the operating conditions you describe? No. It is wise to have a swap partition just in case you accidentally spawn an army of memory hogs so you have a chance to kill them before the OOM killer kicks ...


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 ...



Top 50 recent answers are included