Skip to contentSkip to conversation

Improvemet the responce of xend.

RFC PATCH Peter Teoh 2 participants 2 messages Aug 31, 2007 – Sep 13, 2007

lore
Share & tools
lore

Peter Teoh

author
#0 lore raw

A few comments:

a. The patch basically spawn a new process to handle the additional "xm" inputs asynchronously. Correct? And since currently this is not possible, it also means that the possibilities of deadlocks or race conditions through concurrent access to xend via different xm users is not thoroughly verified. Correct? May be. So this is something to look out for.

b. The performance of dump core is slow, mainly because external hard disk are slow. Therefore, there could be four different options/variations: minidump vs full-dump. For each there could be a compressed vs no-compression option - compressed is to get a smaller physical core.

c. Furthermore, there could be an additional throttling parameters to specify how much to slow the coredump operation, for example, by forcing a CPU re-scheduling operation (higher overheads in task switching - tradeoff for responsiveness) after every fix number of blocks. This will also have the effect of improving performance for additional domU's operation.

Thank you very much.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Hi,

Thank you for your comments.

Quoted 4 lines

A few comments:

a. The patch basically spawn a new process to handle the additional "xm"
inputs asynchronously. Correct?

Yes, but currently only at the time of dump-core.

Quoted 5 lines

And since currently this is not possible
, it also means that the possibilities of deadlocks or race conditions through concurrent access to xend via different xm users is not thoroughly
verified. Correct? May be. So this is something to look out for.

I don't understand completely what you said. Basicaly xend work one by one,
so if xm requests dump-core, xend work only for it. I think it is difficult to change xend to multi thread. But because dump-core work is very simple,
Xend should be able to let another process do dump-core work.

When I posted my patch, I had a mistake that I don't open socket for xenstore. Now we're making another patch with other approach.
If xend get a dump-core request, xend does fork() and exec(xc_dump) (like xc_save, xc_restore).
If the child process wants to write something into xensotre,
it can do by using xs_daemon_open(), xs_write() and so on. (I think)

We concern with what we should do if another xm request destory to the dumped domain.

Quoted 5 lines

b. The performance of dump core is slow, mainly because external hard disk
are slow. Therefore, there could be four different options/variations:
minidump vs full-dump. For each there could be a compressed vs no-
compression option - compressed is to get a smaller physical core.

Yes, I also think so and want their options.
But I don't think the performance yet.

Quoted 5 lines

c. Furthermore, there could be an additional throttling parameters to
specify how much to slow the coredump operation, for example, by forcing a CPU re-scheduling operation (higher overheads in task switching - tradeoff
for responsiveness) after every fix number of blocks. This will also have
the effect of improving performance for additional domU's operation.

We may be able to do it by nice command
if xend let another process do dump-core work.

Best Regards,

Akio Takebe