New answers tagged

0

I knew that chrome/chromium had a task manager, but it doesn't give the total memory used. It turns out that the "Stats for nerds" link in the task manager leads to chrome://memory-redirect/ which does list the total memory used. It would be nice to have external validation of these numbers, as well as a way to get the information on the command line so more ...


-1

I'm sure that it's not the best solution, still it works for me: #!/bin/sh ps aux | grep "[/]opt/google/chrome/chrome" | awk '{print $5}' | awk '{sum += $1 } END { print sum }' ps aux | grep "[/]opt/google/chrome/chrome" | awk '{print $6}' | awk '{sum += $1 } END { print sum }'


2

Running this: perl -e '$a="x"x1000000000;sleep(10);print"done\n"' takes up 1.8GB RAM. So you would expect running this: perl -e '$a="x"x1000000000;fork;fork;fork;fork;sleep(10);print"done\n"' would take up 16 times as much. But it does not. This is due to the Linux kernel's intelligent copy-on-write: Because the contents of '$a' does not change, then ...


0

I've created a script that helps automate this issue. It is based on my complete answer 2 in a question very similar at stackoverflow. You can read all the explanations there. To summarize I would recommend just SIGTERM and SIGKILL, or even SIGTERM, SIGINT and SIGKILL. However I give more options in the complete answer. Please, feel free to download (...


2

According to the man page: Linux supports PTHREAD_SCOPE_SYSTEM, but not PTHREAD_SCOPE_PROCESS And if you take a look at the glibc's implementation: 0034 /* Catch invalid values. */ 0035 switch (scope) 0036 { 0037 case PTHREAD_SCOPE_SYSTEM: 0038 iattr->flags &= ~ATTR_FLAG_SCOPEPROCESS; 0039 break; 0040 0041 case ...



Top 50 recent answers are included