Reputation
13,699
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 33 45
Newest
 Guru
Impact
~560k people reached

Aug
10
awarded  Guru
Aug
7
awarded  Nice Answer
Aug
6
revised How do I delete the contents of a directory if there are spaces in the path?
added 167 characters in body
Aug
6
answered How do I delete the contents of a directory if there are spaces in the path?
Aug
6
awarded  Enlightened
Aug
6
awarded  Good Answer
Aug
6
comment Preventing a user from running a script that should only be run by a CRON job?
Cant you just add a date selector to your SQL query and only select those that match on the given date? You can truncate the table as a cron job by deleting entries daily that are over $DATE+36 hours.
Aug
5
awarded  Nice Answer
Aug
5
answered Why does removing an unused IP address from an interface kill connections unrelated to that address
Aug
5
comment OOM invoked with plenty of free swap
You are mostly getting page allocation failures for order 5 allocations failing, these dont invoke oom-killer. Theres insufficient infomation to make a full on diagnosis but I'm going to say that this router has huge numbers of tcp connections going through it because of tor. Reduce the tcp.rmem/wmem values down and limit the number of connections permitted through tor.
Aug
4
comment how can tmpfs larger than SHMALL parameter?
Yes, the value does not dictate what tmpfs does.
Aug
4
comment OOM invoked with plenty of free swap
Well, the documentation for this value does say "Setting this too high will OOM your machine instantly." kernel.org/doc/Documentation/sysctl/vm.txt
Aug
4
answered how can tmpfs larger than SHMALL parameter?
Aug
3
comment OOM invoked with plenty of free swap
@jjjjjoe To respond to the question directly, I'm saying the going under the min watermark invokes the OOM-Killer for low order allocations (0, 1, 2 or 3). Do userspace applications have access to emergency pools? No, not directly. Userspace cannot directly manipulate internal GFP flags. This can be done indirectly via a system call which may set the flag in kernel code under certain circumstances. If this interests you see lxr.free-electrons.com/source/include/linux/gfp.h for GFP definitions and meanings.
Aug
3
comment OOM invoked with plenty of free swap
@jjjjjoe In example one thats GFP_NOTRACK|GFP_KERNEL. GPT_NOMEMALLOC you refer to is 0x10000, not 0x100000 which is GFP_NOACCOUNT, additionally GFP_HIGH must be set to use emergency reserves. The GFP_NOTRACK thats set turns off a bunch of internal kernel checks for warning about uninitialized memory. Userspace has no direct access to the GFP flags, userspace can only call system calls like mmap(), brk() or shmget(). In this case, oom-killer was called via a slabcache allocation for the names_cache slab produced by resetbutton trying to open a file.
Aug
3
comment OOM invoked with plenty of free swap
I am afraid this is incorrect. This buddyinfo value is dictated by the order size of the allocation, not the amount being allocated. The highest order in all examples is order 1 (for which plenty of memory exists).
Aug
3
answered OOM invoked with plenty of free swap
Aug
3
comment 100% CPU, load average 0 - how is this possible?
Please show the results of pidstat -t -G java 5 3
Aug
3
answered Setting up tmpfs `/run/lock` for hundreds of thousands of 0 byte lock files, and dealing with the inode limit
Aug
3
comment IPTABLES - Limit rate of a specific incoming IP
Last time I checked, theres no CLASSIFY extension in nftables but you can mark packets and use tc filter to classify the traffic based off of the firewall mark.