Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow performance #1777

Closed
majorgreys opened this issue Mar 14, 2017 · 2 comments
Closed

Slow performance #1777

majorgreys opened this issue Mar 14, 2017 · 2 comments

Comments

@majorgreys
Copy link

majorgreys commented Mar 14, 2017

I upgraded to Insider Release 15055 recently and noticed that pandoc within WSL was performing very slowly. I am not sure if this affects many other applications under WSL since this is the main one I use.

I did an uninstall and re-install of WSL just to make sure nothing was causing problem.

Here are the results from a fresh WSL with pandoc 1.19.2.1 deb package installed, comparing it to the Windows binary

tbutt@Toad:~$ time /mnt/c/Program\ Files\ \(x86\)/Pandoc/pandoc.exe --version
Unable to translate current working directory. Using C:\WINDOWS\system32
pandoc.exe 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
Default user data directory: C:\Users\tahir\AppData\Roaming\pandoc
Copyright (C) 2006-2016 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

real    0m0.050s
user    0m0.000s
sys     0m0.031s
tbutt@Toad:~$ time /usr/bin/pandoc --version
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
Default user data directory: /home/tbutt/.pandoc
Copyright (C) 2006-2016 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

real    0m25.729s
user    0m0.000s
sys     0m25.734s

UPDATE: I've attached the strace output for this as well.
pandoc-strace.txt

UPDATE: This is not specific to release 15055 since I found the same issue on my desktop which is not on the fast ring. I also installed the pandoc package from Ubuntu xenial and the issue does not occur with it. So something about the binary from this current deb version is causing issues.

Would there by any further profiling that would help to isolate what's going on? I don't have exact numbers from previous releases but I definitely didn't experience run times on the order of 20 seconds.

@majorgreys majorgreys changed the title Slow performance with Insider Release 15055 Slow performance Mar 14, 2017
@therealkenc
Copy link
Collaborator

therealkenc commented Mar 14, 2017

mmap(0x200000000, 1099512676352, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) 
    = 0x200000000

"Haskell 8" #1671

@benhillis
Copy link
Member

Agreed, this is a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants