Earlier quoted context omitted.
we're programmers, anything can be done with enough time or money
Can you write a program to tell if any given program is going to halt?
Show HN: A “living” Linux process with no memory
21–30 of 117 posts
Re: Show HN: A “living” Linux process with no memory
#22It's 2020. You couldn't have done this in Python3?
He could. You also could have done it in Python3, and you still can.
Re: Show HN: A “living” Linux process with no memory
#23Re: Show HN: A “living” Linux process with no memory
#24Earlier quoted context omitted.
we're programmers, anything can be done with enough time or money
Can you write a program to tell if any given program is going to halt?
Re: Show HN: A “living” Linux process with no memory
#25I've now seen a similar case multiple times in the wild - if a process has a thread in uninterruptible sleep (e.g., blocked on a bad disk or a stuck network filesystem) and you kill it, the process dies, but the kernel waits forever for that thread before informing the parent process. The parent doesn't get SIGCHLD, and wait() doesn't return. (So, for example, your favorite init/supervisor won't restart the process o…
Can/do supervisors poll for this situation? Seems like that should be possible.
That doesn't solve the kernel thread being stuck forever problem. I'm not sure what the fix is there... is it bad drivers with no timeout mechanism? I don't know how they'd do that unless the kernel IO is all async anyway. Just tearing down the kernel thread seems likely to leave the locks abandoned in bad states.
Re: Show HN: A “living” Linux process with no memory
#26Can this be implemented in Go?
Re: Show HN: A “living” Linux process with no memory
#27Earlier quoted context omitted.
we're programmers, anything can be done with enough time or money
Can you write a program to tell if any given program is going to halt?
[0] Disclaimer: may take slightly longer than heat death of current universe.
[1] Alternative solution: https://m.xkcd.com/1266/
Re: Show HN: A “living” Linux process with no memory
#28 $ pip2 install fuse
Collecting fuse
Downloading https://files.pythonhosted.org/packages/c3/f6/82777531d0dd0fa1d1b509258873f4b48e1ec702dcf0258214fafb474895/fuse-0.1.3.tar.gz
ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
fuse depends on gunpowder@ git+https://github.com/funkey/gunpowder@721718b6569b47a2f5d5d6633c76c85f779e25c7Re: Show HN: A “living” Linux process with no memory
#29Did anybody try to run it? Python part of this PoC depends on python2 module "fuse", which in turn depends on "gunpowder", "a library to facilitate machine learning on large, multi-dimensional images". What is even going on here? $ pip2 install fuse Collecting fuse Downloading https://files.pythonhosted.org/packages/c3/f6/82777531d0dd0fa1d1b509258873f4b48e1ec702dcf0258214fafb474895/fuse-0.1.3.tar.gz ERROR: Packages i…
Re: Show HN: A “living” Linux process with no memory
#30Did anybody try to run it? Python part of this PoC depends on python2 module "fuse", which in turn depends on "gunpowder", "a library to facilitate machine learning on large, multi-dimensional images". What is even going on here? $ pip2 install fuse Collecting fuse Downloading https://files.pythonhosted.org/packages/c3/f6/82777531d0dd0fa1d1b509258873f4b48e1ec702dcf0258214fafb474895/fuse-0.1.3.tar.gz ERROR: Packages i…