High memory, low memory

V13 v13 at priest.com
Wed Feb 21 12:12:25 EET 2007


On Wednesday 21 February 2007 02:03, Θοδωρής Λύτρας wrote:
> Σε συνέχεια του προηγούμενου post για το swappiness και το memory
> overcommitment, ήθελα να κάνω μια ακόμη ερώτηση.
>
> Πέτυχα το ακόλουθο άρθρο: http://lwn.net/Articles/75174/ . Δεν μπόρεσα όμως
> να καταλάβω τελικά ποιά είναι επί του πρακτέου η διαφορά μεταξύ high και
> low memory. Ο πυρήνας κάθεται στη low και όλα τα άλλα στη high? Κάποια
> προγράμματα κάθονται στη low και άλλα στη high? Τι ακριβώς συμβαίνει?

Xoris na'mai 100% sigoyros oti den yparxei kapoio lathos sta parakato:

Yparxoyn 3 perioxes mnimis oson afora ton kernel:

* ZONE_DMA: Ta prota 16MB, ta opoia mporoyn na xrisimopoihthoyn gia DMA apo 
ISA syskeves
* ZONE_NORMAL: 16MB-896MB, ta opoia ginontai map apeytheias sth mnimi toy 
kernel
* ZONE_HIGHMEM: 896MB++, ta opoia ginontai map on-demand sth mnimi toy kernel 
(kati san thn XMS an thymamai kala)

  Sto montelo 3G/1G, ta 4GB ths VM moirazontai se 3GB gia to programma poy 
trexei kai 1GB gia ton kernel. Ayto exei san apotelesma kathe fora poy 
trexeis ena programma ayto na mporei na dei mexri 3GB mnimis. O kernel 
krataei gia tin parti toy 1GB VM. Apo ayto to 1GB, ta prota 128MB 
xrisimopoioyntai apo ton idio ton kernel, eno ta ypoloipa 896MB ginontai map 
sta prota 896MB ths fysikis soy mnimis.

  An tora to kaloskeyteis ayto tha deis oti gia sytimata me mnimi eos 896MB, o 
kernel mporei na exei prosbash sth mnimi toy kathe programmatos apla 
prospelaynontas thn VM meta ta 3GB+128MB. 

  Gia ta MB meta ta 896 (highmem), kathe komati toy kernel poy thelei na exei 
prosbasi se ayta, apofasizei poia selida xreiazetai kai thn kanei map se mia  
perioxh sta prota 128MB toy kernel address space (ayta poy'nai gia prosopiki 
xrisi toy kernel). Ayto to eidos probashs sth highmem dimioyrgei ena 
endiameso stadio, to opoio prokalei arketes kathysteriseis (gia logoys poy 
den fainontai edo). Pera ton allon, to poso ths highmem poy mporei na einai 
mapped ana pasa stigmi einai sxetika mikro (2 h 4MB to poly, analoga me to an 
exeis PAE)

  Ta parapano einai ligotero apo to 1% (gia na min po 1/1000) apo to ti 
akribos ginetai me to memory management. Gia perissoteres plirofories, 
synisto to 'Understanding the Linux Kernel'  toy O'Reilly apo toys Daniel P. 
Bovet kai Marco Cesati. Einai kati san th biblo an skopeveis na asxolitheis 
me ta toy kernel. An pali den theleis, den synisto na asxoleisai me tetoia 
themata...

> Και, να υποθέσω οτι το caching του δίσκου γίνεται πάντα από τη high memory?

  Read the book...

> Θοδωρής
<<V13>>




More information about the Linux-greek-users mailing list