WSL2 with 9P (Plan9 protocol) more performance. (Linux Patches)

ABRAHAM JORGE VELEZ OLIVEIRA 15 Reputation points
2023-09-04T10:17:11.2566667+00:00

Hi,
I would like to know if there is any plan or date for WSL2 to incorporate the new Linux patches of the Plan9 Protocol:

https://lwn.net/Articles/918213/

WSL2 performance on Windows shared drives is disastrous (x10 slower). When you carry out compilation processes this is a real problem.

I'm sure it happens to more people. It is the only black point that WSL 2 has compared to version 1.

When is this important advance?

Best Regards,
Abraham.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,109 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ABRAHAM JORGE VELEZ OLIVEIRA 15 Reputation points
    2023-09-07T06:49:02.13+00:00

    Hi,

    Not if we already know that the 9P is involved as file sharing from linux. What we want to know is when Microsoft plans to optimize the speed of this protocol... because it is very, very slow (compared to Samba for example) to perform operations with many files (for example compilations with CMake).

    The link (posted in the first message) indicates that this optimization is available on Linux, but the question is:

    When will this be integrated into the WSL?

    "as there are several forums on this topic."

    Where are this forums? (We don´t find more info...)

    Best regards,

    Abraham J. Velez,

    1 person found this answer helpful.
    0 comments No comments

  2. Limitless Technology 43,926 Reputation points
    2023-09-06T08:50:11.52+00:00

    Hello there,

    I guess there is no official documentation on this as there are several forums on this topic.

    WSL uses the 9P protocol to share files between Windows and WSL. However, this process only appears starting in WSL 0.70.4. Although there is nothing mentioned about it in the 0.70.4 release notes, the 0.70.5 notes mention fixing a race condition in (what is likely) this component.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--