Recent

Author Topic: No memory left  (Read 17203 times)

aradeonas

  • Hero Member
  • *****
  • Posts: 824
No memory left
« on: August 05, 2015, 01:34:11 pm »
Hi,
 
Today I update Lazarus and FPC to last Trunk version and when I want to install a package and recompile IDE it gave me "No memory left".
As hint said I should use -ch param and beside that I dont know how to that and what value I should gave it (because I don't know what is the default value) also I dont know why this happen?My PC didnt changed and its weird.
 
Regards,
Ara

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12593
  • FPC developer.
Re: No memory left
« Reply #1 on: August 05, 2015, 02:30:52 pm »
The -Ch remark is afaik only for DOS.

Probably you load some corrupted file, or a file in a wrong version.  Clean out old files.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #2 on: August 05, 2015, 03:37:30 pm »
It was a working trunk version and now I just update it and again it not working.How can I clean it?delete whole and get again?
I can compile my application but if I want to rebuild the IDE it gives the error.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12593
  • FPC developer.
Re: No memory left
« Reply #3 on: August 05, 2015, 03:51:42 pm »
I always run the make clean before updating.


aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #4 on: August 12, 2015, 06:34:18 pm »
I just delete all of my trunk version and get a new win32 Lazarus and FPC trunk and it compile programs correctly but error happen again when rebuilding IDE and cleaning not solve the problem.
What should I do?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12018
  • Debugger - SynEdit - and more
    • wiki
Re: No memory left
« Reply #5 on: August 12, 2015, 07:27:40 pm »
Does it happen during compile or linking?

If "linking", then check if smartlinking is enabled. Smart-linking an app as big as the IDE can require serious amount of memory. (and in case of the IDE does not win you any noticeable savings).

The flag can be in fpc.cfg, in the IDE "config build Laz" dialog, or maybe in the ide/lazarus.lpi  file.

If "compiling", and doing so from inside the ide, check (tools/options) how many compilations run in parallel. Set it to max one.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #6 on: August 13, 2015, 02:28:34 pm »
OK I checked and it happen in in compiling and parallel compilation is in 0 that is default and mean 4 but I set it on 10 but no change.
Also I checked  fpc.cfg and it has -CX but also when I disabled it nothing changed.
I should say it is not using all of my memory and ppc386 just using 800 mb from my 8 Gb ram.
« Last Edit: August 13, 2015, 02:30:50 pm by aradeonas »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12593
  • FPC developer.
Re: No memory left
« Reply #7 on: August 13, 2015, 02:42:58 pm »
If *nix, check your ulimit -m set ? Server distros sometimes have that set to 512MB, limiting each process to that amount.

The external linker can really eat a lot of memory, the windows internal linker only eats half of that. (and probably won't reach 512 MB).

The parallel runs are mostly fairly shallow ones, and the memory limits probably don't apply anyway since they are multiple processes.


aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #8 on: August 13, 2015, 02:46:28 pm »
No its a win64 that I installed a new Lazarus and FPC trunk win32 on it and it work and compile program but it can't compile it self.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12018
  • Debugger - SynEdit - and more
    • wiki
Re: No memory left
« Reply #9 on: August 13, 2015, 03:36:46 pm »
OK I checked and it happen in in compiling and parallel compilation is in 0 that is default and mean 4 but I set it on 10 but no change.

Try setting it to one.

I had errors in the past on windows with parallel compile. Though usually file access issues.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #10 on: August 13, 2015, 03:49:50 pm »
Memory usage goes to 1200 MB but it solved the problem.I should say this problem wont happened in stable versions and not in before one month ago trunk versions.
Thank you.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #11 on: August 23, 2015, 03:32:44 pm »
Today I add some new packages and remove Anchor and problem come back.
Just as before I set parallel compilation to 1 but memory goes to 1000 and again 'No memory left' message .I tried other values but still the same.

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: No memory left
« Reply #12 on: August 23, 2015, 03:42:59 pm »
How big is your swap file/page file size? Make it 2 * your computer RAM size and see if your problem disappears.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #13 on: August 23, 2015, 03:56:31 pm »
How big is your swap file/page file size? Make it 2 * your computer RAM size and see if your problem disappears.
when it stop it my memory usage is in 60% so no need for this but I set it to 16GB but nothing.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #14 on: August 24, 2015, 11:56:53 am »
Am I the only one having this problem?

I tested it in a clean 64bit Windows 10 with the last trunk version of FPC and Lazarus.

 

TinyPortal © 2005-2018