Μνήμη και εκτελέσιμο.

V13 v13 at priest.com
Mon Jun 2 22:19:01 EEST 2003


On Monday 02 June 2003 21:31, Aggelos Economopoulos wrote:
> On Monday 02 June 2003 18:27, V13 wrote:
> > On Monday 02 June 2003 12:21, Nikos Kanellopoulos wrote:
> > > Για να τρέξει πρέπει να φορτωθεί στη μνήμη.
> > > Άρα χρειάζεται τουλάχιστον τόση μνήμη όσο το
> > > μέγεθος του αρχείου.
> >
> > [1] Eikoniki VM == pseytiki VM giati sto linux mporeis na'xei "used VM"
> > perissoteri apo tin "available VM" :)
>
> E, twra apla gia na to psirisoume ligo, ennoeis oti paradosiaka sta unix
> mporeis na exeis perissoterh apo thn physically-backed vm kai oxi apo thn
> vm[0]. Kai nai, auto einai problhma stis 32-bit arxitektonikes, giati den
> se afhnei na kaneis kataxrhsh tou mmap() kai etsi na aplopoihseis polu tous
> algorithmous tou programmatos sou. Nai, skeptomai polu sugkekrimenh
> periptwsh ;-)

Oxi :) enoo to /proc/sys/vm/overcommit_memory:

=====
overcommit_memory:

This value contains a flag that enables memory overcommitment.
When this flag is 0, the kernel checks before each malloc()
to see if there's enough memory left. If the flag is nonzero,
the system pretends there's always enough memory.

This feature can be very useful because there are a lot of
programs that malloc() huge amounts of memory "just-in-case"
and don't use much of it.

Look at: mm/mmap.c::vm_enough_memory() for more information.
=====

to opoio prepei na'nai 100% linux specific...

<<V13>>



More information about the Linux-greek-users mailing list