jdinan / xpmem-old

Automatically exported from code.google.com/p/xpmem
GNU General Public License v2.0
0 stars 0 forks source link

accounting issue #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

- process A does xpmem_make()
- process B does xpmem_get()/xpmem_attach()

If process A dies, then its entry in /proc/xpmem is still there. That's 
because, in XPMEM, process B has a refcount on process' A segment. XPMEM hasn't 
cleaned that ressource.

If process B keeps doing get/attach from other process that die/terminate, 
eventually a process with the same PID of A will come back. Then XPMEM spits 
errors that the proc entry already exists. I don't know whether that has 
another impact.

Original issue reported on code.google.com by fzs...@gmail.com on 31 Aug 2012 at 3:02

GoogleCodeExporter commented 9 years ago
Note that the same thing happens if process A doesn't call xpmem_remove() 
before exiting.

Original comment by fzs...@gmail.com on 31 Aug 2012 at 4:06