public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/50511] New: gcc lto streamer in fragments memory badly
@ 2011-09-25 9:26 andi-gcc at firstfloor dot org
2011-10-07 5:51 ` [Bug lto/50511] " andi-gcc at firstfloor dot org
0 siblings, 1 reply; 2+ messages in thread
From: andi-gcc at firstfloor dot org @ 2011-09-25 9:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50511
Bug #: 50511
Summary: gcc lto streamer in fragments memory badly
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: andi-gcc@firstfloor.org
I ran into a problem while testing LTO on
a quite large project with a lot of object files:
the lto streamer fragmented the memory map badly by constantly mapping
and unmapping the input files with mmap. I ended up with a memory
map with lots of 2 page holes between mappings. Eventually it bumped
into the default 64k max number of mappings limit on Linux and errored out
because mmap failed.
Workaround was to increase this limit (sysctl -w vm.max_map_count = 200000)
However gcc should be more efficient in its mappings.
I think the problem is the one off cache in lto_file_read() being too dumb.
Looking into a fix.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug lto/50511] gcc lto streamer in fragments memory badly
2011-09-25 9:26 [Bug lto/50511] New: gcc lto streamer in fragments memory badly andi-gcc at firstfloor dot org
@ 2011-10-07 5:51 ` andi-gcc at firstfloor dot org
0 siblings, 0 replies; 2+ messages in thread
From: andi-gcc at firstfloor dot org @ 2011-10-07 5:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50511
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Andi Kleen <andi-gcc at firstfloor dot org> 2011-10-07 05:50:40 UTC ---
Was likely the same problem as 50636
*** This bug has been marked as a duplicate of bug 50636 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-07 5:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-25 9:26 [Bug lto/50511] New: gcc lto streamer in fragments memory badly andi-gcc at firstfloor dot org
2011-10-07 5:51 ` [Bug lto/50511] " andi-gcc at firstfloor dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).