News for hackers. Stuff that matters.
Re:Show HN: A “living” Linux process with no memory by kdom13 on Thursday March 26, 2020 @01:08PM (#22695648)
As someone who doesn't understand much of what's going on here, what resources would you suggest I study to improve?
Re:Show HN: A “living” Linux process with no memory by gouggoug on Thursday March 26, 2020 @01:15PM (#22695721)
It kind off depends on what exactly you don't understand, but a book about Operating Systems and Linux Programming are probably what you want to read. They'll teach you about threads, segfault, the meaning of uninterruptible sleep, signals, the /proc/ directory, etc.
Re:Show HN: A “living” Linux process with no memory by kdom13 on Thursday March 26, 2020 @02:02PM (#22696167)
Can you suggest a book about Operating Systems?
Re:Show HN: A “living” Linux process with no memory by foxrob92 on Thursday March 26, 2020 @08:57PM (#22699565)
I'd suggest "Operating Systems: Three Easy Pieces". (http://pages.cs.wisc.edu/~remzi/OSTEP/)

I've found it very accessible. Largely, the way that they teach is to describe a system based on a set of assumptions, then slowly relax each of the assumptions one by one until you reach an example of a real system. That style of teaching really works for me.

Re:Show HN: A “living” Linux process with no memory by mgbmtl on Thursday March 26, 2020 @02:37PM (#22696485)
"Operating System Concepts" by Silberschatz, Galvin and Gagne, is a classic. It covers the basics: processes, syscalls, filesystems. (it's what we read in our OS course in university)
Re:Show HN: A “living” Linux process with no memory by kdom13 on Thursday March 26, 2020 @03:36PM (#22697079)
Thank you!
Re:Show HN: A “living” Linux process with no memory by kccqzy on Thursday March 26, 2020 @07:26PM (#22699050)
A more pragmatic book is The Linux Programming Interface, by Michael Kerrisk. It is Linux-specific though, but that's probably fine.

Uninterruptible process sleep is covered in section 22.3. Threads, in chapters 29–33. Signals, chapters 20–22. The proc file system in section 12.1. Memory mappings, chapters 49–50.

Re:Show HN: A “living” Linux process with no memory by usr1106 on Friday March 27, 2020 @02:46AM (#22700849)
I haven't read that book, but I enjoyed a conference tutorial about cgroups and namespaces by Michael Kerrisk. One of the best trainers/presenters I have experienced!
Re:Show HN: A “living” Linux process with no memory by aaron_m04 on Thursday March 26, 2020 @09:28PM (#22699734)
The version I have covers kernel 2.6. Is that new enough to still be useful?
Re:Show HN: A “living” Linux process with no memory by usr1106 on Friday March 27, 2020 @02:39AM (#22700819)
Useful yes, complete no.

Uninterruptible sleep, signals, memory mappings etc have not changed fundamentally.

Namespaces and cgroups are new concepts in Linux, they won't be covered. IIRC user namespaces appeared in 3.14. New cgroup hierarchy got somehow usable much later than that.

The new concepts are needed for containers. Not at all relevant for the original article here.

Re:Show HN: A “living” Linux process with no memory by usr1106 on Friday March 27, 2020 @05:16AM (#22701360)
Actually he is still maintaining a list of changes since the book has come out. http://man7.org/tlpi/api_changes/index.html
Re:Show HN: A “living” Linux process with no memory by kccqzy on Friday March 27, 2020 @04:12AM (#22701147)
Of course. Linux famously "doesn't break userspace" so almost anything that works in 2.6 still works today.