Live data from Hacker News

Show HN: A “living” Linux process with no memory

github.com

21–30 of 117 posts

Re: Show HN: A “living” Linux process with no memory

#23
post #8

Can this be implemented in Go?

Not sure whether this is serious, or some sarcastic comment, hinting at all the "blablabla implemented in Go" posts. EDIT: Aaaand there is the crew!

Surely rust is the preferred option for that? Go hasn't been nearly as vocal in my experience.

Re: Show HN: A “living” Linux process with no memory

#24

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?

Tell you what: you give me time and money, and I'll work on this program. Keep giving me time and money until I tell you I've succeeded.

Re: Show HN: A “living” Linux process with no memory

#25
post #17
post #11

I'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.

Also curious why the kernel can't abandon the thread since the process is dead anyway; set a bit in kernel space so on the walk back from the syscall it bails out instead of trying to return to userspace.

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

#27

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?

With enough time, sure! [0][1]

[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
Did 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 installed from PyPI cannot depend on packages which are not also hosted on PyPI.
  fuse depends on gunpowder@ git+https://github.com/funkey/gunpowder@721718b6569b47a2f5d5d6633c76c85f779e25c7

Re: Show HN: A “living” Linux process with no memory

#29
post #28

Did 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…

Pretty sure they meant to depend on python-fuse not fuse. The former is python bindings to libfuse.

https://github.com/libfuse/python-fuse

Re: Show HN: A “living” Linux process with no memory

#30
post #28

Did 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…

I think it's meant to depend on the fuse-python (https://pypi.org/project/fuse-python/). fuse is something else
Post reply on HN