Tag Info

New answers tagged

1

So you need a general purpose linux-world-wide utility for scripts etc to get this information? I'm afraid getting such specific information won't be easy. I'm not familiar with clinfo package, I presume you have to sudo apt-get install it. Because if it doesn't have to be general, you could write a OpenCL application which would obtain this info. I believe ...


0

You need to tune these settings, now you have: save 300 1000 save 60 80000 save 900 1 Explained: save N M means save redis dataset to disk every Ns if at least M keys changed My advice is start with the default, which is save 300 1000. It is quite a reasonable setting. My guess is that on your machine these three saves accumulate somehow and then ...


0

I have experiment with echo 1 | sudo tee /proc/sys/vm/oom_kill_allocating_task, but it still lags for a few minutes before actually kill the problematic program. In my testing earlyoom is the best for this case, to install it, just type: yaourt --needed --noconfirm -S --force earlyoom sudo cp /usr/bin/earlyoom /usr/local/bin/ sudo systemctl enable earlyoom ...


1

After a lot more searching I think I have convinced myself that there is no simple way to get what I want. So, what did I end up doing? I installed LiME from github (https://github.com/504ensicsLabs/LiME) git clone https://github.com/504ensicsLabs/LiMe cd /LiME/src make -C /lib/modules/`uname -r`/build M=$PWD modules The above commands create the lime.ko ...


0

Do not panic, all is fine. Here is explanation why: Excerpt: To see how much ram is free to use for your applications, run free -m and look at the row that says "-/+ buffers/cache" in the column that says "free". That is your answer in megabytes: $ free -m total used free shared buffers cached Mem: 1504 ...


2

This problem might be caused by an incorrect sizing of the maximum size of the connection tracking table and the hash table. The Linux kernel tries to allocate contiguous pages to track the connection tables for the iptables nf_conntrack module. As you don't have enough physical memory, conntrack fails back to vmalloc. This table is not dynamically created ...


1

First of all you don't need to free up any buffers or cache yourself unless you have a sepcific requirement. Linux saves caches for improving the performance of memory access. Buffers are just temporary location and both cache and buffers will keep changing depending on the tasks which Linux is doing. There is a link which describes the fields very nicely ...


0

If you believe it's just a load issue you may have to either configure limits.conf or put it in a cgroup and limit resources such that there's always a healthy amount of memory and cpu available at any given point in time. It will slow down the indexing (which would likely finish on its own eventually even with a blackout) but the VM should remain usable in ...


1

A couple of things need to be clarified here: There is virtually no difference between a program being on the hard storage or in memory. If the kernel doesn't find the file already mapped into memory, mmap happens and from then on, the file is accessed through the memory pages, mapped into the virtual memory of a program. Note that this whole mechanism is ...


0

Your question is quite difficult to understand and may contain some misconceptions. Does this mean that a program is loaded into primary memory only when execution control is given to it(or OS has decided that it is the next program to be executed) In UNIX, control is handed over to the next program through the execve() system call (and variants). This ...


0

Java command-line parameters like Xmx sets the maximum RAM for the application heap. There are other memory regions, like the stack and perm space.


0

Just to update, check this out. The functions with address 0 should just be the address 0 from the original object file that the function was defined in. The library I'm working with happens to define many functions in separate files, therefore many of the important ones appear to have 0x0 as their address. If you add -o to the command line, it should ...


2

On busybox, "ps" doesn't have a "-o" option, but "ps l" includes the RSS column. If the underlying O/S is Linux, you can also get more specific details for a given process from: cat /proc/PID/status The output looks like this: Name: ash State: S (sleeping) Tgid: 1990 Pid: 1990 PPid: 1 TracerPid: 0 Uid: 0 0 0 0 Gid: 0 0 0 0 ...


0

this one should work regardless the linux distribution you are running. You need to cover the redirection when running sudo. $ sudo sh -c "$(which echo) 3 > /proc/sys/vm/drop_caches" Credits: http://unix.stackexchange.com/a/148442/101951 (i added the which echo part though)



Top 50 recent answers are included