271 reputation
18
bio website
location Poland
age 28
visits member for 3 years, 4 months
seen Oct 13 at 16:45

Aug
5
awarded  Popular Question
Nov
26
awarded  Scholar
Nov
26
accepted Using `kill -s 0 $pid` vs `[[ -e /proc/$pid ]]` to detect if PID is running
Nov
26
comment Using `kill -s 0 $pid` vs `[[ -e /proc/$pid ]]` to detect if PID is running
While the portability argument is moot as the script is Linux specific and won't be ported to other Unices (for one, it interfaces with kernel using /sys already). The possibility for /proc being unmounted is valid, even if unlikely. So I'm marking this answer as the accepted one.
Nov
26
comment Using `kill -s 0 $pid` vs `[[ -e /proc/$pid ]]` to detect if PID is running
@user16653: One: ps is a tool to be used by user, not in scripts, querying /proc in such use case and being racy is not a problem. Two: kill is a bash builtin, there is no forking involved in either command.
Nov
25
asked Using `kill -s 0 $pid` vs `[[ -e /proc/$pid ]]` to detect if PID is running
Mar
8
comment Discrepancy between reported used memory and sum of application memory usage
I started with the applications down: there wasn't any application that was using significantly more memory after week of uptime than when it was freshly started, that's why I started searching what's happening in the kernel
Mar
8
comment Discrepancy between reported used memory and sum of application memory usage
@Huygens: yes, I was using it, I don't know if its size grew
Mar
5
comment Discrepancy between reported used memory and sum of application memory usage
yes, it is similar, but I don't use NFS at all and moreover, I had this problem while running 3.7 and 3.6
Mar
5
comment What is “kernel dynamic memory” as reported by smem?
Yes, I tried, I might have hit it a bit later, but not by much. It's not a server, it's my main workstation I also use for light gaming. I've checked smem sources, the "kernel noncache dynamic memory" is equal to all of memory (as reported by meminfo), reduced by cache, buffers and userland. It is basically unaccounted for memory (that does include SLAB, but is much larger than SLAB).
Mar
5
comment Discrepancy between reported used memory and sum of application memory usage
@Hyugens: There's 525048 kB of memory that I don't know how it's used, it's not SLAB, it's not cache, it's not buffers and it's not user applications. The question is, how can I get detailed info about kernel memory usage?
Mar
3
comment What is “kernel dynamic memory” as reported by smem?
slabtop reports about 200-300MiB memory in total. While with running the applications I can make smem report similar numbers on my other machine by running applications, turning the applications off does decrease the kernel dynamic memory on the other machine. On the problematic machine, the noncache kernel dynamic memory just keeps on growing until the system is unusable (about a week of uptime)
Mar
3
comment Discrepancy between reported used memory and sum of application memory usage
I appreciate your input, but as I've said, disabling zram and enabling regular swap didn't help, ergo zram isn't the problem.
Mar
3
comment Discrepancy between reported used memory and sum of application memory usage
and that's probably the 55MiB difference I'm seeing between free and smem (as zram compresses the data, and I remember seeing a 4 fold size reduction), thing is, it's not the problem I'm trying to diagnose. The issue at hand is why my noncache kernel memory is big in the first place (even if we assume that zram memory is uncompressed, it's still over 600MiB that's being used, that is, over an eight of total memory!).
Mar
2
comment Discrepancy between reported used memory and sum of application memory usage
First: while your in-depth explanation of zram is not far from reality, it's supposed to be used without real swap. Second: disabling zram didn't really help. The problem is probably caused by some bug in radeon driver, unfortunately I won't have time to debug it in near future.
Mar
2
comment What is “kernel dynamic memory” as reported by smem?
deactivating zram doesn't help (yes, it does reduce the amount of kernel memory, but only by about 100MiB), the 5 biggest processes took about 300 (X) to 50MiB RSS, in total, less than 600MiB.
Mar
2
awarded  Yearling
Jan
29
comment What is “kernel dynamic memory” as reported by smem?
The system becomes sluggish. When I'm running KMail (so Akonadi, Virtuoso), Opera, Amarok, Ktorrent and few other applications I'm left with less than 700MiB for file system cache when kernel hogs to itself a full 1GiB, hardly optimal. And this is only after X has been running for a week or so. Simple logout and login brings the system back to optimal performance (with exactly the same applications running). Logs led me to a bug related to readon driver, I'm currently testing if the issue is still present.
Jan
22
awarded  Critic
Jan
21
awarded  Student