public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted
@ 2003-10-17  3:28 lucier at math dot purdue dot edu
  2003-10-17 14:14 ` [Bug optimization/12655] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: lucier at math dot purdue dot edu @ 2003-10-17  3:28 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12655

           Summary: Excessive memory usage---32-bit virtual memory exhausted
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lucier at math dot purdue dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8

With this compiler

banach-19% gcc -v
Reading specs from
/export/mdd0/users/lucier/local/gcc-ssa/bin/../lib/gcc/sparc-sun-solaris2.8/3.5-tree-ssa/specs
Configured with: ../configure --enable-checking=no --enable-languages=c
--prefix=/home/c/lucier/local/gcc-ssa
Thread model: posix
gcc version 3.5-tree-ssa 20031016 (merged 20031005)

I get the following results on the file

http://www.math.purdue.edu/~lucier/bugzilla/1/_num.i.gz

when it exhausts the 2GB (?) virtual memory process size after about 90 minutes
(?) of cpu time.

gcc -I../include -I. -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2
-fno-trapping-math -fno-strict-aliasing -fomit-frame-pointer -fPIC -fno-common
-save-temps -DHAVE_CONFIG_H -D___PRIMAL -D___LIBRARY
-D___GAMBCDIR=\"/usr/local/\" -c _num.c
virtual memory exhausted: Not enough space
make[1]: *** [_num.o] Error 1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug optimization/12655] Excessive memory usage---32-bit virtual memory exhausted
  2003-10-17  3:28 [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted lucier at math dot purdue dot edu
@ 2003-10-17 14:14 ` pinskia at gcc dot gnu dot org
  2003-10-17 14:20 ` [Bug optimization/12655] [tree-ssa] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 14:14 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12655


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |optimization


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug optimization/12655] [tree-ssa] Excessive memory usage---32-bit virtual memory exhausted
  2003-10-17  3:28 [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted lucier at math dot purdue dot edu
  2003-10-17 14:14 ` [Bug optimization/12655] " pinskia at gcc dot gnu dot org
@ 2003-10-17 14:20 ` pinskia at gcc dot gnu dot org
  2003-11-14  7:15 ` steven at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 14:20 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12655


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Excessive memory usage---32-|[tree-ssa] Excessive memory
                   |bit virtual memory exhausted|usage---32-bit virtual
                   |                            |memory exhausted
   Target Milestone|---                         |tree-ssa


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug optimization/12655] [tree-ssa] Excessive memory usage---32-bit virtual memory exhausted
  2003-10-17  3:28 [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted lucier at math dot purdue dot edu
  2003-10-17 14:14 ` [Bug optimization/12655] " pinskia at gcc dot gnu dot org
  2003-10-17 14:20 ` [Bug optimization/12655] [tree-ssa] " pinskia at gcc dot gnu dot org
@ 2003-11-14  7:15 ` steven at gcc dot gnu dot org
  2003-11-18  6:01 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-11-14  7:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2003-11-14 07:15 -------
It compiles for me without running out of memory.  Brad, does it still happen 
for you? 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12655


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug optimization/12655] [tree-ssa] Excessive memory usage---32-bit virtual memory exhausted
  2003-10-17  3:28 [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted lucier at math dot purdue dot edu
                   ` (2 preceding siblings ...)
  2003-11-14  7:15 ` steven at gcc dot gnu dot org
@ 2003-11-18  6:01 ` pinskia at gcc dot gnu dot org
  2003-11-18 15:45 ` amacleod at redhat dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18  6:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-18 06:01 -------
Any memory hog.
Brad can you try again, it might be fixed with a patch to fix PRE's memory problems.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
           Keywords|                            |memory-hog


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12655


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug optimization/12655] [tree-ssa] Excessive memory usage---32-bit virtual memory exhausted
  2003-10-17  3:28 [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted lucier at math dot purdue dot edu
                   ` (3 preceding siblings ...)
  2003-11-18  6:01 ` pinskia at gcc dot gnu dot org
@ 2003-11-18 15:45 ` amacleod at redhat dot com
  2003-11-18 16:49 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: amacleod at redhat dot com @ 2003-11-18 15:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amacleod at redhat dot com  2003-11-18 15:45 -------
My compile times indicate that for mainline it takes 930 seconds to compile with
-O2.
Tree-ssa with -fno-tree-pre compiles it in 73 seconds.

with PRE, it compiles in 165 seconds now. 

So PRE is definately better than it was, and both are WAY better than mainline :-).

Mainline is spending over 80% of its time in regstack...

-fno-tree-pre can compile it in 107 seconds at -O3


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12655


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug optimization/12655] [tree-ssa] Excessive memory usage---32-bit virtual memory exhausted
  2003-10-17  3:28 [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted lucier at math dot purdue dot edu
                   ` (4 preceding siblings ...)
  2003-11-18 15:45 ` amacleod at redhat dot com
@ 2003-11-18 16:49 ` pinskia at gcc dot gnu dot org
  2003-11-19  5:30 ` lucier at math dot purdue dot edu
  2003-11-19  5:33 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18 16:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-18 16:49 -------
Wow, a testcase where the tree-ssa is faster :)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-18 16:49:47
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12655


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug optimization/12655] [tree-ssa] Excessive memory usage---32-bit virtual memory exhausted
  2003-10-17  3:28 [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted lucier at math dot purdue dot edu
                   ` (5 preceding siblings ...)
  2003-11-18 16:49 ` pinskia at gcc dot gnu dot org
@ 2003-11-19  5:30 ` lucier at math dot purdue dot edu
  2003-11-19  5:33 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: lucier at math dot purdue dot edu @ 2003-11-19  5:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lucier at math dot purdue dot edu  2003-11-19 05:30 -------
Subject: Re:  [tree-ssa] Excessive memory usage---32-bit virtual memory exhausted

I'm out of town, but I managed to build it and compute the current  
time.  It required about 340 MB, top, to compile:

banach-21% time ~/local/tree-ssa/bin/gcc -I../include -I. -Wall -W  
-Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math  
-fno-strict-aliasing -fomit-frame-pointer -fPIC -fno-common  
-DHAVE_CONFIG_H -D___PRIMAL -D___LIBRARY -D___GAMBCDIR=\"/usr/local/\"  
-c _num.i -v
Reading specs from  
/export/mdd0/users/lucier/local/tree-ssa/bin/../lib/gcc/sparc-sun- 
solaris2.8/3.5-tree-ssa/specs
Configured with: ../configure --enable-languages=c  
--prefix=/home/c/lucier/local/tree-ssa
Thread model: posix
gcc version 3.5-tree-ssa 20031118 (merged 20031111)
   
/export/mdd0/users/lucier/local/tree-ssa/bin/../libexec/gcc/sparc-sun- 
solaris2.8/3.5-tree-ssa/cc1 -fpreprocessed _num.i -quiet -dumpbase  
_num.i -mcpu=v7 -auxbase _num -O1 -Wall -W -Wno-unused -version  
-fno-math-errno -fschedule-insns2 -fno-trapping-math  
-fno-strict-aliasing -fomit-frame-pointer -fPIC -fno-common -o  
/tmp/ccbTc7Fr.s
GNU C version 3.5-tree-ssa 20031118 (merged 20031111)  
(sparc-sun-solaris2.8)
         compiled by GNU C version 3.5-tree-ssa 20031118 (merged  
20031111).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
  /usr/ccs/bin/as -V -Qy -s -K PIC -xarch=v8 -o _num.o /tmp/ccbTc7Fr.s
/usr/ccs/bin/as: Sun WorkShop 6 99/08/18
1794.66u 117.09s 7:42.72 413.1%

This is with checking enabled, so I don't think this is an issue  
anymore.

If it becomes an issue, I'll file another report ;-).

Brad



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12655


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug optimization/12655] [tree-ssa] Excessive memory usage---32-bit virtual memory exhausted
  2003-10-17  3:28 [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted lucier at math dot purdue dot edu
                   ` (6 preceding siblings ...)
  2003-11-19  5:30 ` lucier at math dot purdue dot edu
@ 2003-11-19  5:33 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-19  5:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-19 05:33 -------
Fixed so closing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12655


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-11-19  5:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17  3:28 [Bug c/12655] New: Excessive memory usage---32-bit virtual memory exhausted lucier at math dot purdue dot edu
2003-10-17 14:14 ` [Bug optimization/12655] " pinskia at gcc dot gnu dot org
2003-10-17 14:20 ` [Bug optimization/12655] [tree-ssa] " pinskia at gcc dot gnu dot org
2003-11-14  7:15 ` steven at gcc dot gnu dot org
2003-11-18  6:01 ` pinskia at gcc dot gnu dot org
2003-11-18 15:45 ` amacleod at redhat dot com
2003-11-18 16:49 ` pinskia at gcc dot gnu dot org
2003-11-19  5:30 ` lucier at math dot purdue dot edu
2003-11-19  5:33 ` pinskia at gcc dot gnu 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).