making "xm dump-core" paralell
Hi,
# Sorry, I mistook the function name on e-mail.
# xc_domain_dump() -> xc_domain_dumpcore()
Quoted 5 lines
- Add
xc_dumpcoreprogram. This program only callsxc_domain_dump()Quoted 1 line
in libxc to dump the core image of a domainU.
Why?
To make xend call indirectly xc_domain_dumpcore() written by C. I think this is similar to xc_save and xc_restore programs.
xend (cset#15880:a00cc97b392a) calls xc_domain_dumpcore() directly. It takes xend a lot of time to finish this C function.
Until the xend's thread finishes xc_domain_dumpcore(), any other xend's thread
don't run because of GIL (global interpreter lock) in CPython specification.
http://docs.python.org/api/threads.html
# If xc_domain_dumpcore() release GIL sometimes, other xend's thread can run.
# But I guess not.
By changing xend to create a xc_dumpcore process and
to wait for the process to finish, xend don't begin to call C function directly,
so that other xend's thread can run while dealing with dump-core.
Thank you,
Rikiya Ayukawa
Quoted 12 lines · Rikiya Ayukawa
# Sorry, I mistook the function name on e-mail.
#xc_domain_dump()->xc_domain_dumpcore()Quoted 5 lines
- Add
xc_dumpcoreprogram. This program only callsxc_domain_dump()Quoted 1 line
in libxc to dump the core image of a domainU.
Why?
To make xend call indirectly
xc_domain_dumpcore()written by C. I think this is similar toxc_saveandxc_restoreprograms.
Quoted 8 lines
xend (cset#15880:a00cc97b392a) calls
xc_domain_dumpcore()directly. It takes xend a lot of time to finish this C function.Until the xend's thread finishes
xc_domain_dumpcore(), any other xend's thread
don't run because of GIL (global interpreter lock) in CPython specification.
But if you're forking, why can't you do it in Python?
regards
john
Hi, John
Quoted 17 lines · Rikiya Ayukawa
Quoted 16 lines
# Sorry, I mistook the function name on e-mail.
#xc_domain_dump()->xc_domain_dumpcore()Quoted 5 lines
- Add
xc_dumpcoreprogram. This program only callsxc_domain_dump()Quoted 1 line
in libxc to dump the core image of a domainU.
Why?
To make xend call indirectly
xc_domain_dumpcore()written by C. I think this is similar toxc_saveandxc_restoreprograms.xend (cset#15880:a00cc97b392a) calls
xc_domain_dumpcore()directly. It takes xend a lot of time to finish this C function.
Quoted 7 lines
Quoted 5 lines
Until the xend's thread finishes
xc_domain_dumpcore(), any other xend's thread
don't run because of GIL (global interpreter lock) in CPython specification.But if you're forking, why can't you do it in Python?
The child process of xend can call xc_domain_dumpcore, but it is worse than execing the new dump command because we must be careful about some more cases.
For example if we do not use exec(), at least, the child of xend must unregister the xenwatch to dump a domU at the domU crashing time because the child process of xend has the same functions of parent. I think there are many other case that we must be careful about multi process of xend.
xm save/restore also fork+exec. I think it's the same reason. Is that right, Keir?
Best Regards,
Akio Takebe
Quoted 2 lines · Akio Takebe
xm save/restore also fork+exec. I think it's the same reason. Is that right, Keir?
My understanding is that the only reason we have separate binaries for that is because in the past save/restore was unstable, and had a tendency to crash xend.
john
Quoted 6 lines
Quoted 2 lines
xm save/restore also fork+exec. I think it's the same reason. Is that right, Keir?
My understanding is that the only reason we have separate binaries for that is because in the past save/restore was unstable, and had a tendency to crash xend.
I can't see much downside to having a separate process. It makes it easier to ionice the IO etc.
Ian
Quoted 9 lines · Ian Pratt
Quoted 6 lines
Quoted 2 lines
xm save/restore also fork+exec. I think it's the same reason. Is that right, Keir?
My understanding is that the only reason we have separate binaries for that is because in the past save/restore was unstable, and had a tendency to crash xend.
I can't see much downside to having a separate process. It makes it easier to ionice the IO etc.
A separate process isn't the sticking point, it's whether we really need a separate C implementation.
john
Quoted 9 lines · Ian Pratt
Quoted 6 lines
Quoted 2 lines
xm save/restore also fork+exec. I think it's the same reason. Is that right, Keir?
My understanding is that the only reason we have separate binaries for that is because in the past save/restore was unstable, and had a tendency to crash xend.
I can't see much downside to having a separate process. It makes it easier to ionice the IO etc.
Well the fact that XenD has to parse the STDOUT from these processes applying a regex of '^ERROR:' in an attempt to try and catch errors is one fairly large downside. Combine that with the incredibly complex interactions between XenD and QEMU, again with tricky error reporting and the result is a pretty hard thing to debug.
Dan.
Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|