Opened 4 years ago

Closed 4 years ago

#4285 closed bug (invalid)

STM bug on Windows?

Reported by: eevar Owned by:
Priority: normal Milestone:
Component: Runtime System Version: 6.12.3
Keywords: Cc:
Operating System: Windows Architecture: x86_64 (amd64)
Type of failure: Runtime performance bug Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I think I've found a bug in the RTS or STM library for Windows (HP 2010.2.0.0 on Vista x64), after running the ants program from fatvat.co.uk.

After some random period (0-10 seconds), the ant activity suddenly drops by 90% or so. I guess it's a deadlock issue, as ram usage doesn't change much.

Recompiling with -threaded seems to fix the problem. I don't see the same issue on my Linux pc.

I've attached a zip archive containing binaries compiled without threading, with threading, and with profiling support.

There's also output from a 10-sec profiling run (I have no idea what options would make sense..), where said slowdown occurs after about 3 sec.

Attachments (2)

AntsVis.hp (7.3 KB) - added by eevar 4 years ago.
AntsVis.prof (15.4 KB) - added by eevar 4 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 4 years ago by eevar

Binaries would be too large, I'll attach the profiling output I have so far instead.

The source is commit cfeec71ef93f1a632e82700d2c7a33f0f92d35bf from here: http://github.com/fffej/haskellprojects/tree/master/ants/ , but the problem's been present in all revisions I've tested.

Changed 4 years ago by eevar

Changed 4 years ago by eevar

comment:2 Changed 4 years ago by eevar

  • Resolution set to invalid
  • Status changed from new to closed

Never mind. I'll track down the issue and reopen this if it's really a runtime issue.

Note: See TracTickets for help on using tickets.