darcs

Issue 546 ntvdm.exe takes up max CPU on darcs push to local on win32?

Title ntvdm.exe takes up max CPU on darcs push to local on win32?
Priority not-our-bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy, zooko
Assigned To
Topics

Created on 2007-10-08.17:28:28 by zooko, last changed 2009-08-27.13:51:58 by admin.

Messages
msg2161 (view) Author: zooko Date: 2007-10-08.17:28:27
Folks:

If I do a darcs put to a local directory on win32, a process named  
ntvdm.exe starts hammering the CPU and keeps going for many minutes.

If I do a pull, the process appears, but then it disappears again  
shortly.

ntvdm.exe is apparently a 16-bit (!!) emulation module.

There are two likely culprits here:

1.  cygwin is using some crazy 16-bit something to launch/load bash  
scripts (there is a bash script wrapper around my darcs executable)

2.  haskell is using some crazy 16-bit something for some reason

Does anyone out there know?

Regards,

Zooko
msg2162 (view) Author: zooko Date: 2007-10-09.13:20:08
This was my mistake.  I had renamed my cygwin bash wrapper script from "darcs"
to "darcs.exe".  That causes this behavior.  Fixed.
msg2163 (view) Author: droundy Date: 2007-10-10.20:08:53
On Mon, Oct 08, 2007 at 05:28:29PM -0000, Zooko wrote:
> Folks:
> 
> If I do a darcs put to a local directory on win32, a process named  
> ntvdm.exe starts hammering the CPU and keeps going for many minutes.
> 
> If I do a pull, the process appears, but then it disappears again  
> shortly.
> 
> ntvdm.exe is apparently a 16-bit (!!) emulation module.
> 
> There are two likely culprits here:
> 
> 1.  cygwin is using some crazy 16-bit something to launch/load bash  
> scripts (there is a bash script wrapper around my darcs executable)

Could you try doing the same action without cygwin? It would seem that this
could eliminate this as a possibility.

> 2.  haskell is using some crazy 16-bit something for some reason

This sounds very weird.  If it's the case, it'd either be because (a) darcs
calls a Haskell library function that does something weird, or (b) a
Haskell library calls some windows function that itself is implemented
with 16-bit code.

There's an outside chance that we directly call some weird windows
function to deal with the filesystem.

> Does anyone out there know?

I don't.  :( I'm sorry to so often be so unhelpful on windows problems...
-- 
David Roundy
Department of Physics
Oregon State University
msg2164 (view) Author: droundy Date: 2007-10-10.20:11:26
Sorry about the noise...
History
Date User Action Args
2007-10-08 17:28:29zookocreate
2007-10-09 13:20:14zookosetstatus: unread -> resolved
messages: + msg2162
2007-10-10 20:08:54droundysetstatus: resolved -> unknown
messages: + msg2163
2007-10-10 20:11:28droundysetstatus: unknown -> resolved
messages: + msg2164
2009-08-06 17:51:38adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, dagit, mornfall, simon, thorkilnaur, - droundy
2009-08-06 20:54:10adminsetnosy: - beschmi
2009-08-10 22:08:57adminsetnosy: - markstos, darcs-devel, jast, dagit, Serware, mornfall
2009-08-25 18:03:01adminsetnosy: + darcs-devel, - simon
2009-08-27 13:51:58adminsetnosy: tommy, kowey, darcs-devel, zooko, thorkilnaur, dmitry.kurochkin