15

[Please edit this comment out to remove any association of my name with this crap. Thank you very much] Please don't do this in the shell. There is no amount of tweaking that would ever make it remotely efficient. Shell loops are slow and using the shell to parse text is just bad practice. Your whole script can be replaced by this simple awk one-liner which ...


3

Because there is never any benefit in dropping caches. Forgetting stuff in not where the gain in. The gain is in reusing memory, this will happen anyway. As some point data will be evicted from memory. However doing these large jobs, may cause harm to performance: if data is cached but never re-used, then it is causing other data to be evicted, with no ...


2

Your problem is that you're trying to use a modern desktop environment with an ancient video card that cannot support it. In general, servers come with relatively poor video cards because nobody uses them. You're not helped in this regard by the fact that your GPU is from 2007 and has what would now be considered a tiny amount of video memory. GNOME, by ...


2

Filenames end up as 0-0.png, 0-1.png, ..., 0-9.png, 0-10.png, 0-11.png, ... But with * alphabetical expansion the order you're using them in ends up being 0-0.png, 0-1.png, 0-10.png, 0-11.png, ..., 0-19.png, 0-2.png, 0-21.png, ... So you are processing frames out of order, resulting in the erratic animation. To work around this issue you could use 0-?.png ...


2

The original code. When you start off you just start 300 copies of cli.php. This takes about 1200 processes because you want to measure the time taken to launch. You then loop the variable crd from 300 to 9999999. If the shell thinks there are spare slots in the threads array it will start a new cli.php using the 4 processes. Otherwise you loop over ...


2

Why doesn't Linux automatically clear caches? It will. ron> free -g total used free shared buffers cached Mem: 504 415 88 1 0 352 -/+ buffers/cache: 62 441 Swap: 0 0 0 Cached memory should still be considered free memory. ...


1

No, Linux does not care about Sockets. Check out the Kernel.org documentation on CPU Topology. This relevant passage should shed light on the situation. The kernel does not care about the concept of physical sockets because a socket has no relevance to software. It's an electromechanical component. In the past a socket always contained a single ...


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