public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/53569] New: mac-OSX idle memory
@ 2012-06-04  2:38 jmfriedman7 at alum dot mit.edu
  2012-06-04  2:47 ` [Bug target/53569] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jmfriedman7 at alum dot mit.edu @ 2012-06-04  2:38 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53569
           Summary: mac-OSX idle memory
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jmfriedman7@alum.mit.edu


Calls to fortran subroutines that use large temporary arrays fill up 'idle
memory' on the MAC-OSX, as can be seen with 'top' or the Mac 'activity
monitor'.  I found that I can get around this by using:

call system('purge')

to evoke the command line 'purge' from within the program before the 'return'
statement for such subroutines to free the idle memory; but I was wondering
whether something could be done more fundamentally at the compiler level to
avoid this problem.

Without such clearing of idle memory I used to hear lots of disk access being
done to get around the small amount of free 'core' memory.  Massive arrays
would eat up  many Gb of core memory by turning it to 'idle memory'.

Maybe there is a compile time option that I do not know about.


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

* [Bug target/53569] mac-OSX idle memory
  2012-06-04  2:38 [Bug fortran/53569] New: mac-OSX idle memory jmfriedman7 at alum dot mit.edu
@ 2012-06-04  2:47 ` pinskia at gcc dot gnu.org
  2012-06-04  3:11 ` jmfriedman7 at gmail dot com
  2012-06-04  3:34 ` kargl at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-06-04  2:47 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |*-*-darwin*
          Component|libfortran                  |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-06-04 02:47:43 UTC ---
This sounds more like a bug in the Mac OS X kernel/libc and how it handles
memory allocation.


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

* [Bug target/53569] mac-OSX idle memory
  2012-06-04  2:38 [Bug fortran/53569] New: mac-OSX idle memory jmfriedman7 at alum dot mit.edu
  2012-06-04  2:47 ` [Bug target/53569] " pinskia at gcc dot gnu.org
@ 2012-06-04  3:11 ` jmfriedman7 at gmail dot com
  2012-06-04  3:34 ` kargl at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jmfriedman7 at gmail dot com @ 2012-06-04  3:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from jmfriedman7 at gmail dot com 2012-06-04 03:11:22 UTC ---
Thanks,

Maybe I should send a comment there too.

On Mon, Jun 4, 2012 at 11:47 AM, pinskia at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53569
>
> Andrew Pinski <pinskia at gcc dot gnu.org> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Target|                            |*-*-darwin*
>          Component|libfortran                  |target
>
> --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-06-04
> 02:47:43 UTC ---
> This sounds more like a bug in the Mac OS X kernel/libc and how it handles
> memory allocation.
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>


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

* [Bug target/53569] mac-OSX idle memory
  2012-06-04  2:38 [Bug fortran/53569] New: mac-OSX idle memory jmfriedman7 at alum dot mit.edu
  2012-06-04  2:47 ` [Bug target/53569] " pinskia at gcc dot gnu.org
  2012-06-04  3:11 ` jmfriedman7 at gmail dot com
@ 2012-06-04  3:34 ` kargl at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu.org @ 2012-06-04  3:34 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from kargl at gcc dot gnu.org 2012-06-04 03:34:32 UTC ---
Appears to be an OS problem.


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

end of thread, other threads:[~2012-06-04  3:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-04  2:38 [Bug fortran/53569] New: mac-OSX idle memory jmfriedman7 at alum dot mit.edu
2012-06-04  2:47 ` [Bug target/53569] " pinskia at gcc dot gnu.org
2012-06-04  3:11 ` jmfriedman7 at gmail dot com
2012-06-04  3:34 ` kargl 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).