public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56746] New: 4.8 regression: increased memory usage when compiling C++
@ 2013-03-26 18:07 mathias at gaunard dot com
  2013-03-27  9:50 ` [Bug c++/56746] [4.8 regression] " rguenth at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: mathias at gaunard dot com @ 2013-03-26 18:07 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56746
           Summary: 4.8 regression: increased memory usage when compiling
                    C++
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mathias@gaunard.com


On my C++ project I have observed significant increased memory usage between
GCC 4.6/4.7 and 4.8.

Unfortunately I do not have a testcase, but compiling the test
"core.utility.functions.whereij.unit" of my template-heavy project NT2
(https://github.com/MetaScale/nt2) gives the following results:

g++-4.7
  User time (seconds): 155.76
  System time (seconds): 4.62
  Percent of CPU this job got: 99%
  Elapsed (wall clock) time (h:mm:ss or m:ss): 2:40.58
  Average shared text size (kbytes): 0
  Average unshared data size (kbytes): 0
  Average stack size (kbytes): 0
  Average total size (kbytes): 0
  Maximum resident set size (kbytes): 2781396
  Average resident set size (kbytes): 0
  Major (requiring I/O) page faults: 121
  Minor (reclaiming a frame) page faults: 726987
  Voluntary context switches: 288
  Involuntary context switches: 547
  Swaps: 0
  File system inputs: 31104
  File system outputs: 15320
  Socket messages sent: 0
  Socket messages received: 0
  Signals delivered: 0
  Page size (bytes): 4096
  Exit status: 0

g++-4.8
  User time (seconds): 155.13
  System time (seconds): 6.50
  Percent of CPU this job got: 99%
  Elapsed (wall clock) time (h:mm:ss or m:ss): 2:41.68
  Average shared text size (kbytes): 0
  Average unshared data size (kbytes): 0
  Average stack size (kbytes): 0
  Average total size (kbytes): 0
  Maximum resident set size (kbytes): 3972292
  Average resident set size (kbytes): 0
  Major (requiring I/O) page faults: 0
  Minor (reclaiming a frame) page faults: 1048923
  Voluntary context switches: 11
  Involuntary context switches: 576
  Swaps: 0
  File system inputs: 0
  File system outputs: 12368
  Socket messages sent: 0
  Socket messages received: 0
  Signals delivered: 0
  Page size (bytes): 4096
  Exit status: 0

So it goes from 2.65GB to 3.79GB.
Details of the versions used below.

$ g++-4.7 -v
Using built-in specs.
COLLECT_GCC=g++-4.7
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object
--enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)

$ g++-4.8 -v
Using built-in specs.
COLLECT_GCC=g++-4.8
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.0-1'
--with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --enable-objc-gc --enable-multiarch --with-arch-32=i586
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.0 (Debian 4.8.0-1)


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

end of thread, other threads:[~2015-06-23  8:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26 18:07 [Bug c++/56746] New: 4.8 regression: increased memory usage when compiling C++ mathias at gaunard dot com
2013-03-27  9:50 ` [Bug c++/56746] [4.8 regression] " rguenth at gcc dot gnu.org
2013-03-27 11:04 ` mathias at gaunard dot com
2013-03-27 11:09 ` paolo.carlini at oracle dot com
2013-03-27 11:12 ` redi at gcc dot gnu.org
2013-03-27 16:41 ` mathias at gaunard dot com
2013-03-28  9:51 ` rguenth at gcc dot gnu.org
2013-03-28 10:39 ` mathias at gaunard dot com
2013-03-29 18:44 ` jason at gcc dot gnu.org
2013-04-26 18:10 ` jakub at gcc dot gnu.org
2013-05-31 11:00 ` jakub at gcc dot gnu.org
2013-06-13 15:49 ` mathias at gaunard dot com
2013-06-13 15:54 ` mathias at gaunard dot com
2013-10-05  9:29 ` ofv at wanadoo dot es
2013-10-16  9:51 ` jakub at gcc dot gnu.org
2014-05-22  9:07 ` rguenth at gcc dot gnu.org
2014-12-19 13:34 ` jakub at gcc dot gnu.org
2015-06-23  8:41 ` rguenth at gcc dot gnu.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).