DNT MemoPen Data Specifications Page 4

  • Download
  • Add to my manuals
  • Print
  • Page
    / 52
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 3
This is the Title of the Book, eMatter Edition
Copyright © 2005 O’Reilly & Associates, Inc. All rights reserved.
Memory Management in Linux
|
415
Different kernel functions require different types of addresses. It would be nice if
there were different C types defined, so that the required address types were explicit,
but we have no such luck. In this chapter, we try to be clear on which types of
addresses are used where.
Physical Addresses and Pages
Physical memory is divided into discrete units called pages. Much of the system’s
internal handling of memory is done on a per-page basis. Page size varies from one
architecture to the next, although most systems currently use 4096-byte pages. The
constant
PAGE_SIZE (defined in <asm/page.h>) gives the page size on any given
architecture.
If you look at a memory address—virtual or physical—it is divisible into a page num-
ber and an offset within the page. If 4096-byte pages are being used, for example, the
12 least-significant bits are the offset, and the remaining, higher bits indicate the
page number. If you discard the offset and shift the rest of an offset to the right, the
result is called a page frame number (PFN). Shifting bits to convert between page
frame numbers and addresses is a fairly common operation; the macro
PAGE_SHIFT
tells how many bits must be shifted to make this conversion.
High and Low Memory
The difference between logical and kernel virtual addresses is highlighted on 32-bit
systems that are equipped with large amounts of memory. With 32 bits, it is possible
to address 4 GB of memory. Linux on 32-bit systems has, until recently, been lim-
ited to substantially less memory than that, however, because of the way it sets up
the virtual address space.
The kernel (on the x86 architecture, in the default configuration) splits the 4-GB vir-
tual address space between user-space and the kernel; the same set of mappings is
used in both contexts. A typical split dedicates 3 GB to user space, and 1 GB for ker-
nel space.
*
The kernel’s code and data structures must fit into that space, but the big-
gest consumer of kernel address space is virtual mappings for physical memory. The
kernel cannot directly manipulate memory that is not mapped into the kernel’s
address space. The kernel, in other words, needs its own virtual address for any
memory it must touch directly. Thus, for many years, the maximum amount of phys-
ical memory that could be handled by the kernel was the amount that could be
mapped into the kernel’s portion of the virtual address space, minus the space
* Many non-x86 architectures are able to efficiently do without the kernel/user-space split described here, so
they can work with up to a 4-GB kernel address space on 32-bit systems. The constraints described in this
section still apply to such systems when more than 4 GB of memory are installed, however.
,ch15.13676 Page 415 Friday, January 21, 2005 11:04 AM
Page view 3
1 2 3 4 5 6 7 8 9 ... 51 52

Comments to this Manuals

No comments

Simplicity 300 Series podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Kosiarki Simplicity 300 Series.
Dostarczamy 1 pdf podręczników Simplicity 300 Series do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Kosiarki Simplicity

Modele Rodzaj dokumentu
6200 Series Instrukcja Użytkownika   6200 yl Switch Series, 12 strony
402 Instrukcja Obsługi   Simplicity 402 Instruction manual, 80 strony
409G Instrukcja Użytkownika     PRIMUS Workbook, 72 strony
2690716 Instrukcja Operatora   Simplicity 2690716 Operator`s manual, 40 strony
Regent 1693264 Instrukcja Operatora   Simplicity Regent 1693264 Operator`s manual, 34 strony
ZT2354 Instrukcja Operatora   Simplicity ZT2354 Operator`s manual, 47 strony
Lancer / 4400 Instrukcja Operatora   Simplicity Lancer / 4400 Operator`s manual, 42 strony
1691996 Instrukcja Operatora   Simplicity 1691996 Operator`s manual, 40 strony
1694376 Instrukcja Użytkownika   avertissement [en] , 40 strony
1693920 Instrukcja Użytkownika   Bridgeway Ultra-Small Company Market Fund [en] , 13 strony
1696396 Instrukcja Użytkownika   Inga/`Liar, 6 strony
REVITALIZER 629 Instrukcja Użytkownika   thelook - ePageView, 36 strony
22HP Instrukcja Operatora   Simplicity 22HP Operator`s manual, 42 strony
Express Series Instrukcja Operatora   Simplicity Express Series Operator`s manual, 48 strony
6200 Series Podręcznik Użytkownika   Simplicity 6200 Series User guide, 28 strony
Turbo Turbo Wide Body Cart & Hitch Instrukcja Użytkownika   1692884 Mulch Kit 44 [de] [es] [fr] [ja] [nl] [sv] , 42 strony
7010 Instrukcja Użytkownika   System 350 Autosteering - Topcon Precision Agriculture, 3 strony
1600408 Dokumentacja   Simplicity 1600408 Specifications, 338 strony
Axion 7800376 Instrukcja Użytkownika      Axion / 150Z Series, 18 strony
998 Instrukcja Użytkownika   `Top 12 ways Schneider Electric impacts a hotel`s financial, 1 strony