#698: GHC's internal memory allocator never releases memory back to the OS
---------------------------------+------------------------------------------
Reporter: guest | Owner: igloo
Type: bug | Status: new
Priority: low | Milestone: 6.12 branch
Component: Runtime System | Version: 6.4.1
Severity: normal | Resolution:
Keywords: | Difficulty: Moderate (1 day)
Testcase: N/A | Os: Linux
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by JeremyShaw):
I believe that virtual memory counts against your quota on most VPSes. On
my VPS with a 64MB quota, I have a Haskell-based server which only
requires 7MB RSS (and 5MB of that is SHR), but requires 40MB virtual.
In general, the threaded RTS seems to use a lot of virtual memory. On my
system, the one-liner:
{{{
main = getLine >> return ()
}}}
compiled with, {{{ghc --make -O2 -threaded -o main}}}
requires less than 1MB of RSS but 20MB of virtual. If (unused) virtual
memory really does count against my quota, then there could be an actual
costs savings involved...
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/698#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs