Hacker Newsnew | past | comments | ask | show | jobs | submit | hackernudes's commentslogin

I see some comments about soft lockups during memory pressure. I have struggled with this immensely over the years. I wrote a userspace memory reclaimer daemon and have not had a lockup since: https://gist.github.com/EBADBEEF/f168458028f684a91148f4d3e79... .

The hangs usually happened when I was stressing VFS (the computer was a samba server) along with other workloads. To trigger a hang manually I would read in large files (bigger than available ram) in parallel while running a game. I could get it to hang even with 128GB ram. I tweaked all the vfs settings (swappiness, etc...) to no avail. I tried with and without swap.

In the end it looked like memory was not getting reclaimed fast enough, like linux would wait too long to start reclaiming memory and some critical process would get stuck waiting for some memory. The system would hang for minutes or hours at a time only making the tiniest of progress between reclaims.

If I caught the problem early enough (just as everything started stuttering) I could trigger a reclaim manually by writing to '/sys/fs/cgroup/memory.reclaim' and the system would recover. I wonder if it was specific to btrfs or some specific workload pattern but I was never able to figure it out.


I want to express my gratitude for not falling for greedy marketers' lies and using correct base-2 for KB/MB/GB


Just tune the kernel watermarks - vm.min_free_kbytes and vm.watermark_scale_factor


I do wish I had documented what I tried better! There might be a magic combo that could have helped but I tried tweaking a lot of the vm settings.

One day I will probably see if I can still reproduce the original problem and be more methodical about it. More likely on list of things I might not ever get around to.


Doesn't that show physical cash in bank vaults? Am I misunderstanding? That number would be utterly meaningless for this discussion.

Edit: I see this was covered in other replies


https://m.youtube.com/watch?v=xalTFH5ht-k&t=99

This matches my memory of 56k dialup with the two BONGs.

And now I get to share my favorite AT command. M0 could mute the modem! M1 was quieter than the default. I will never understand why those weren't more common! Used like: ATM0DT


I never wanted to mute, because with sound you could hear a bad connection early and retry faster.


And you could hear the call waiting beep if you didn’t have a dedicated line for the PC.


Yup, this exactly.


Very similar, thank you so much


Today I learned: Man-portable air-defense systems (MANPADS) are shoulder-fired, surface-to-air missiles designed for use by individuals or small teams to engage low-flying aircraft, helicopters, and UAVs.


KTLO = keeping the lights on


The word is terawatts unless you mean earth-based watts. OK then, it's confirmed, data centers in space!


High latency to earth but low latency (potentially) to other satellites.



Thanks, Sir.


Pretty sure it was in Snow Crash


No, check out https://en.wikipedia.org/wiki/Cryptonomicon#Technical_conten...

It was in a passage where some secondary character was in a prison cell and managed to spy on the screen across the wall using the technique.


Neverball is a similar game that's been open source for ages. It has a web based version too: https://play.neverball.org/


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: