Performance of l4_task_unmap call

Chen Tian <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <CADsfiYhrwqbdZXwcB3hJjdfYMY3pgrv=mgbPyvp8kaW8zscshQ@mail.gmail.com>
Hi,

I did a small test: a parent task first maps and then unmaps a page to its
child. Both parent and child task are running on the same core.

I found the execution is very slow and 99% time are spent on l4_task_unmap(
L4_FP_OTHER_SPACES flag is used).

After some investigation, I found the flag "need_xcpu_tlb_flush" in
map_util.cpp:766 is set to true. My guess is that this flag controls the
tlb of the cpu at which the child task is running. However, in my case,
both tasks are running on the same core, setting this flag can have huge
negative impact on performance.

I am thinking to put a check before this statement: if (current_cpu() !=
space's CPU) set the flag to true. Is this correct? If so, how to get
space's cpu?
space->cpu() ?

Thanks for the help.

Chen

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.