{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/873","repository_url":"https://api.github.com/repos/Microsoft/WSL","labels_url":"https://api.github.com/repos/Microsoft/WSL/issues/873/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WSL/issues/873/comments","events_url":"https://api.github.com/repos/Microsoft/WSL/issues/873/events","html_url":"https://github.com/Microsoft/WSL/issues/873","id":170770603,"node_id":"MDU6SXNzdWUxNzA3NzA2MDM=","number":873,"title":"Major performance (I/O?) issue in /mnt/* and in ~ (home)","user":{"login":"Mika56","id":600347,"node_id":"MDQ6VXNlcjYwMDM0Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/600347?v=4","gravatar_id":"","url":"https://api.github.com/users/Mika56","html_url":"https://github.com/Mika56","followers_url":"https://api.github.com/users/Mika56/followers","following_url":"https://api.github.com/users/Mika56/following{/other_user}","gists_url":"https://api.github.com/users/Mika56/gists{/gist_id}","starred_url":"https://api.github.com/users/Mika56/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mika56/subscriptions","organizations_url":"https://api.github.com/users/Mika56/orgs","repos_url":"https://api.github.com/users/Mika56/repos","events_url":"https://api.github.com/users/Mika56/events{/privacy}","received_events_url":"https://api.github.com/users/Mika56/received_events","type":"User","site_admin":false},"labels":[{"id":357591574,"node_id":"MDU6TGFiZWwzNTc1OTE1NzQ=","url":"https://api.github.com/repos/Microsoft/WSL/labels/file%20system","name":"file system","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":{"login":"tara-raj","id":6438194,"node_id":"MDQ6VXNlcjY0MzgxOTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6438194?v=4","gravatar_id":"","url":"https://api.github.com/users/tara-raj","html_url":"https://github.com/tara-raj","followers_url":"https://api.github.com/users/tara-raj/followers","following_url":"https://api.github.com/users/tara-raj/following{/other_user}","gists_url":"https://api.github.com/users/tara-raj/gists{/gist_id}","starred_url":"https://api.github.com/users/tara-raj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tara-raj/subscriptions","organizations_url":"https://api.github.com/users/tara-raj/orgs","repos_url":"https://api.github.com/users/tara-raj/repos","events_url":"https://api.github.com/users/tara-raj/events{/privacy}","received_events_url":"https://api.github.com/users/tara-raj/received_events","type":"User","site_admin":false},"assignees":[{"login":"tara-raj","id":6438194,"node_id":"MDQ6VXNlcjY0MzgxOTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6438194?v=4","gravatar_id":"","url":"https://api.github.com/users/tara-raj","html_url":"https://github.com/tara-raj","followers_url":"https://api.github.com/users/tara-raj/followers","following_url":"https://api.github.com/users/tara-raj/following{/other_user}","gists_url":"https://api.github.com/users/tara-raj/gists{/gist_id}","starred_url":"https://api.github.com/users/tara-raj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tara-raj/subscriptions","organizations_url":"https://api.github.com/users/tara-raj/orgs","repos_url":"https://api.github.com/users/tara-raj/repos","events_url":"https://api.github.com/users/tara-raj/events{/privacy}","received_events_url":"https://api.github.com/users/tara-raj/received_events","type":"User","site_admin":false}],"milestone":null,"comments":216,"created_at":"2016-08-11T23:31:08Z","updated_at":"2019-01-02T21:03:16Z","closed_at":null,"author_association":"NONE","body":"# A brief description\n\nAs a Symfony developer, it's always been hard to get a stable/fast development environment. My current setup is a Ubuntu running under VirtualBox (using vagrant). While page generation is fast, my IDE accesses my PHP files through SMB, which is really (sometimes horribly) slow.\nI'm now trying to use WSL to improve all of this. However, I'm having a major performance issue when using `/mnt/*` folders.\nIf I set up a Symfony project under `/mnt/c`, it is really slow. If I set it up under `/home/mikael`, it is very fast.\n# Expected results\n\nDrives mounted under /mnt should be as fast a any other folder.\n# Actual results\n\nWith a new Symfony 3.1.3 project, under `/home/mikael` takes between 100ms and 130ms to generate the home page.\nThe same project under `/mnt/c/` takes between 1200ms and  1500ms.\n# Your Windows build number\n\n10.0.14393.51\n# Steps / commands required to reproduce the error\n\n```\n# Install PHP5\n$ sudo apt-get install -y php5 php5-json\n\n# Download Symfony installer\n$ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony\n$ sudo chmod a+x /usr/local/bin/symfony\n\n# Download Symfony\ncd\nsymfony new symfony_test\n\n# Start Symfony\ncd symfony_test\nphp bin/console server:run\n```\n\nOpen your browser and go to http://127.0.0.1:8000/.\nOnce the page is loaded, refresh it (on first request, Symfony had to generate its cache).\nGeneration time is displayed on the bottom left\n![Image](http://glados.aperture.fr.nf/up/load/2016/08/2016-08-12_01-18-38.png)\n\nYou can then do the same under `/mnt/c/`\n\n```\ncd /mnt/c/\nsymfony new symfony_test\ncd symfony_test\nphp bin/console server:run\n```\n# Additional information\n\nI've added my dev folders as excluded folders in Windows Defender, as well as %LOCALAPPDATA%\\lxss.\nI've tried having my project in `~` and pointing my IDE to %LOCALAPPDATA%\\lxss\\home\\mikael\\ but as I've later read, there is no supported way of editing WSL files.\nWSL is installed in its default location under C (no strange junction or symlink), which is a healthy SSD.\nMy computer is attached to a domain, if this might have any influence.\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/comments/450984146","html_url":"https://github.com/Microsoft/WSL/issues/873#issuecomment-450984146","issue_url":"https://api.github.com/repos/Microsoft/WSL/issues/873","id":450984146,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDk4NDE0Ng==","user":{"login":"lfourquaux","id":4708015,"node_id":"MDQ6VXNlcjQ3MDgwMTU=","avatar_url":"https://avatars0.githubusercontent.com/u/4708015?v=4","gravatar_id":"","url":"https://api.github.com/users/lfourquaux","html_url":"https://github.com/lfourquaux","followers_url":"https://api.github.com/users/lfourquaux/followers","following_url":"https://api.github.com/users/lfourquaux/following{/other_user}","gists_url":"https://api.github.com/users/lfourquaux/gists{/gist_id}","starred_url":"https://api.github.com/users/lfourquaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfourquaux/subscriptions","organizations_url":"https://api.github.com/users/lfourquaux/orgs","repos_url":"https://api.github.com/users/lfourquaux/repos","events_url":"https://api.github.com/users/lfourquaux/events{/privacy}","received_events_url":"https://api.github.com/users/lfourquaux/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T21:03:16Z","updated_at":"2019-01-02T21:03:16Z","author_association":"NONE","body":"It looks like Wine is also much slower in some cases (including some I/O bound scenarios):\r\nhttps://www.phoronix.com/scan.php?page=article&item=wine-ubuntu1804-win10&num=1\r\n\r\nAnyway, this discussion is getting very much off track.  I'm sure everyone here wishes for better WSL I/O performance, and that the people in charge of WSL development are aware of it and are working on it (they told us so!).  It looks like the problem is hard, and I appreciated very much that one of them took some time to explain why.\r\n\r\nDo remember that the Windows kernel has been in development for decades (NT 3.1 was released in 1993) and this includes people, including talented ones, working on performance.\r\n\r\nLet us keep this on topic, helpful and civil.  This issue is about WSL, an emulation of the Linux kernel on top of the Windows kernel.  This is not about the performance of any other kernel, especially ones designed around POSIX system calls, nor about supporting more filesystems (I'm sure you can open issues about ext4/xfs/btrfs/bcachefs/whatever support, but @SvenGroot's answer suggests that it won't help I/O performance).\r\n\r\nIMHO, the most helpful part of the discussion on our (non-Microsoft) side, has been which compromises people are willing to accept in exchange of better performance:\r\n * several people seem willing to accept WSL-only filesystems (bringing WSL close to a Linux virtual machine, but with some differences(*));\r\n * disabling real-time malware scanning (Defender or anything else) was mentioned, and this can be done right now but WSL is still a bit slow;\r\n * I suggested a flag for relaxing Linux semantics in favor of something closer than Cygwin in case it could help (maybe it doesn't).\r\n\r\nAll of these have obvious drawbacks.  Maybe YOU have other (better!) suggestions for WSL?  If you don't, commenting on which ones would be acceptable for you, and why, could help the developers to make decisions.\r\n\r\nApologies for the unasked-for lecture, and happy new year to you all!\r\n\r\n(*) I won't say faster without benchmarking: the I/O overhead of nowaday's virtual machines is low, maybe much lower than what we can expect from WSL, which is why I suggested it above.  On the other hand, WSL can interoperate with the rest of Windows much better than a VM."}}
{"actor":{"display_login":"lfourquaux"}}