Jump to page: 1 2
Thread overview
What is the memory usage limit on DMD linux?
Sep 04, 2007
BCS
Sep 04, 2007
Anders Bergh
Sep 04, 2007
BCS
Sep 04, 2007
Anders Bergh
Sep 04, 2007
BCS
Sep 04, 2007
mandel
Sep 04, 2007
Jascha Wetzel
Sep 04, 2007
BCS
Sep 04, 2007
Christian Kamm
Sep 04, 2007
BCS
September 04, 2007
current stats:

14min 14sec compile time
~1070MB memory usage (256 actual memeory)

And that's only the 26 productions needed to define expressions!

BTW does anyone known of an command line tool that will given me peak memory usage on linux?


September 04, 2007
You can sort the columns in top.

On 9/4/07, BCS <ao@pathlink.com> wrote:
> current stats:
>
> 14min 14sec compile time
> ~1070MB memory usage (256 actual memeory)
>
> And that's only the 26 productions needed to define expressions!
>
> BTW does anyone known of an command line tool that will given me peak memory usage on linux?
>
>
>
September 04, 2007
BCS Wrote:

> current stats:
> 
> 14min 14sec compile time
> ~1070MB memory usage (256 actual memeory)
Sounds like a very unusual compile time.
How do you do that? Compiling GBs of code? ;-)
September 04, 2007
BCS wrote:
> current stats:
> 
> 14min 14sec compile time
> ~1070MB memory usage (256 actual memeory)
> 
> And that's only the 26 productions needed to define expressions!
> 
> BTW does anyone known of an command line tool that will given me peak memory usage on linux?
> 

wow - the worst i've seen is 3-5 minutes and <600mb, but only when optimizing >10000 line switch-statements with >800 cases. without -O, compile times are adequate (<1min).
did you try compiling with GDC or DMD on windows?
September 04, 2007
Reply to Anders,

> You can sort the columns in top.
> 
> On 9/4/07, BCS <ao@pathlink.com> wrote:
> 
>> current stats:
>> 
>> 14min 14sec compile time
>> ~1070MB memory usage (256 actual memeory)
>> And that's only the 26 productions needed to define expressions!
>> 
>> BTW does anyone known of an command line tool that will given me peak
>> memory usage on linux?
>> 

What's where I got the ~1GB number. 

What I'm looking for is a tool that will allow me to ignore the build and find peak usage after dmd has quit.


September 04, 2007
Reply to Jascha,

> BCS wrote:
> 
>> current stats:
>> 
>> 14min 14sec compile time
>> ~1070MB memory usage (256 actual memeory)
>> And that's only the 26 productions needed to define expressions!
>> 
>> BTW does anyone known of an command line tool that will given me peak
>> memory usage on linux?
>> 
> wow - the worst i've seen is 3-5 minutes and <600mb, but only when
> optimizing 10000+ line switch-statements with 800+ cases. without -O,
> optimizing compile times are adequate (<1min).
> did you try compiling with GDC or DMD on windows?

DMD win gives, "symbol name to long my 10K+" errors.

Another thing I noted is that the object file is about 100MB (I'm only creating about 40 non trivial funtions and about 40-60 trivial ones) and I'm starting to get link errors. :-b


September 04, 2007
BCS wrote:

> 14min 14sec compile time
> ~1070MB memory usage (256 actual memeory)

Possibly you have run into this bug? http://d.puremagic.com/issues/show_bug.cgi?id=1382

> BTW does anyone known of an command line tool that will given me peak memory usage on linux?

The man page of the 'time' utility (not the bash buildin) says it'd be able to give peak memory usage. It does not work for me though.

Regards,
Christian
September 04, 2007
On 9/4/07, BCS <ao@pathlink.com> wrote:
> What's where I got the ~1GB number.
>
> What I'm looking for is a tool that will allow me to ignore the build and find peak usage after dmd has quit.

I misunderstood your question, realized that shortly after hitting the reply button. Sorry about that.

I can't find anything that would do what you need, however, all I can suggest is writing a script that runs repeatedly, writing to a file how much memory dmd is using. Then when the compilation is complete you can open the file and sort it.
September 04, 2007
Reply to Christian,

> BCS wrote:
> 
>> 14min 14sec compile time
>> ~1070MB memory usage (256 actual memeory)
> Possibly you have run into this bug?
> http://d.puremagic.com/issues/show_bug.cgi?id=1382

I don't think so. The only CTFE I use is done well before the memory stops climbing

>> BTW does anyone known of an command line tool that will given me peak
>> memory usage on linux?
>> 
> The man page of the 'time' utility (not the bash buildin) says it'd be
> able to give peak memory usage. It does not work for me though.
> 

It looks like that is using the getrusage system call and only about 5 of the values are valid under Linux

> Regards,
> Christian


September 04, 2007
Reply to Anders,

> On 9/4/07, BCS <ao@pathlink.com> wrote:
> 
>> What's where I got the ~1GB number.
>> 
>> What I'm looking for is a tool that will allow me to ignore the build
>> and find peak usage after dmd has quit.
>> 
> I misunderstood your question, realized that shortly after hitting the
> reply button. Sorry about that.
> 
> I can't find anything that would do what you need, however, all I can
> suggest is writing a script that runs repeatedly, writing to a file
> how much memory dmd is using. Then when the compilation is complete
> you can open the file and sort it.
> 

so inelegant :(


« First   ‹ Prev
1 2