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

A program should not hold memory anymore when it is no longer running. If it did, that would be an OS memory leak.


A process which doesn't exist cannot hold memory. But the OS can certainly chose to defer the erasure as long as there's no better use for that memory. This is often done to speed up the performance of processes which are frequently quit/stopped and reopened/started.


> A process which doesn't exist cannot hold memory

Not quite. Some leaks are across processes. If your process talk to a local daemon and cause it to hold memory then quitting the client process wont necessarily free it. In a similar way, some application are multi-process and keep some background process active even when you quit to "start faster next time" (of act as spywares). This includes some infamous things like Apple updater that came with iTunes on Windows. It's also possible to cause SHM enabled caches to leak quite easily. Finally, the kernel caches as much as it can (file system content, libraries, etc) in case it is reused. That caching can push "real process memory" into the swap.

So quitting a process does not always restore the total amount of available memory.


I would expect that if you read data - the GIF image in this case - from the block device, it will stay in pagecache, until there is memory pressure.


This was clever!


Do you have a bunch of textbooks that you would recommend reading? :)


That's a good question - it's a while ago and the only one that really jumps out is The History of Psychology by Leahy because understanding psychology is as much about understanding how we understand the mind in the context of society, and to do that you need to know the history. Not what you were expecting ...

I highly recommend reading up on Hans Selye's biological model of stress and the HPA axis. Also worth checking out Freudelberger for the seminal article on burnout and Maslach for the formal treatment.

Organisational psychology is great but so contentious an area it's helpful to have a good teacher.

I highly recommend looking into Biopsychology, which is essentially the interplay between our mind and body and even how our mind distributed through the body.


Favorited ... ensuring I’ll never get back to it again.


> If you want to compare it to anything, it's runc, but that's not a good headline :)

I don’t know, gunc is a pretty good name.


I prefer the sum, as it describes the minimum-length path containing all participants. It seems like the intuitive expansion of the concept of the Erdös number.


I personally tried this. Pregnant silence.


Twitter does require your phone number to make the account sometimes. (I suppose if it can’t determine enough about you.) Recently I was able to make one, only to be locked out a few minutes later until I “confirmed my identity” by providing a phone number.


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

Search: