|
|
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Надо ли как-то специфически настраивать pagefile на винде? Какой характер IO на этом файле? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 15:15 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Ты применительно к Oracle спрашиваешь или вообще? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 15:31 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
И применительно и вообще :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 15:35 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Na skolko znaju, to u pagefile toljko odin parametr - razmer. Sovetuju uzkazivatj Initial size = maximum size shtobi izbezhatj defragmentacii. Jeslji mnoga diskov, togda razmestjitj pagefile na kazhdij - load balancing :) A naschot Oracle - nado sljeditj, shtobi Oracle njeuznal, shto takoje pagefile :) t.e. - no swaping, paging ... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 15:41 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Дык и спрашивается, как с ним лучше обойтись :) Например, на какой RAID положить - есть 5, 1, 0+1? Насколько много там IO, и не будет ли он мешать оракловому (на этих рэйдах лежат датафайлы и реду). Какой размер следует установить? Как предотвратить уход того же oracle.exe в своп при заведомо достаточном объёме памяти? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 15:55 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
to Scott Tigger: Не советуют Oracle работать с памятью за переделами физической. Если тебе нужно для сортировок, тогда лучше уж TEMPORARY увеличить. А если всё-же хочешь использовать и RAID, то лучше самый быстрый RAID, например 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 16:51 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
pagefile нужно класть на обыкновенный диск. Равно как и своп на *nix ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 16:54 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Я в винде не слишком силён, ты скажи, например, что будет, если я установлю размер pagefile=0? Если сейчас памяти достаточно, почему он используется, и как этого избежать (мне нет нужды сортировать в свопе :), памяти хватает (2Gb) и есть некоторый резерв на дополнительные сессии). Pagefile больше пишется, больше читается, или примерно одинаково? Своппинг блокирует работу системы/своппящегося процесса или нет? Как посмотреть, кто, чего и сколько держит в pagefile? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 17:01 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
А с каких пор RAID 1 стал самым быстрым? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 17:04 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
я тоже не силен. Но я бы не стал делать pagefile=0 в Виндовс. На Linux такое катит. Нужно различать paging и swapping. От небольшого paginga избавиться нельзя. Так работает виртуальная адресация. А загнать Oracle в своп - это нужно постараться. Pagefile должен примерно одинаково читаться/писаться. Я так думаю. Поскольку на диск есть смысл сбрасывать только грязные страницы. Насчет блокировки...процесс вообще ничего не знает о paging'e. >Как посмотреть, кто, чего и сколько держит в pagefile? этого я не знаю. А как посмотреть это под Солярой? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 17:15 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Был какой-то хитрый скриптик, так не упомню, дома надо посмотреть - завтра напишу. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 17:19 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Virtual Memory The Windows 2000 memory model is based on a flat, linear, 32-bit address space. Windows 2000 uses a virtual memory management system to manage memory. This system provides several advantages, including the following: The ability to run more applications concurrently than would normally be possible using the amount of physical memory installed in the computer. The protection of memory resources. Virtual memory management helps prevent situations where one process interferes with the memory space for another process. Physical memory refers to the RAM hardware chips inside your computer. Virtual memory refers to the way that an operating system makes this physical memory available to an application. Windows 2000 represents each memory byte, both physical and virtual, with a unique address. The amount of physical RAM installed in the computer limits the number of physical addresses that are available. However, the number of virtual addresses is limited only by the number of bits in the virtual address. Windows 2000, which uses a 32-bit virtual address scheme, has 4 GB of virtual addresses available for use. Virtual Memory Manager (VMM) manages memory. VMM has two specific roles: VMM maintains a memory-mapping table. This table tracks the list of virtual addresses that belong to each process and where the actual data referenced by these virtual addresses resides. (See Figure 4.5.) When a thread requests access to memory, it requests a virtual address space. VMM uses the virtual address requested by the thread to locate the corresponding physical address. It then transfers the data requested by the thread. VMM moves memory contents to and from the hard disk when required. This process is referred to as Paging A virtual address is the address space that an application uses to reference memory. When a process is launched in Windows 2000, VMM presents the process with 4 GB of virtual address space. This 4 GB of virtual address space is divided as follows: The upper 2 GB is reserved for the system or for kernel-mode threads only. The lower portion of this upper 2 GB area is mapped directly by the hardware. Access to this lower portion is extremely fast. The lower 2 GB is available to both user-mode threads: for example, applications and kernel-mode threads. VMM can move it to disk if required. Windows 2000 divides the upper portion into a paged and a nonpaged pool. Addresses in the paged pool can be swapped out to disk, but those in the nonpaged pool must remain in physical memory. The size of each page is 4 KB. Paging The process of moving data in and out of physical memory is called paging. When physical memory becomes full and a thread needs access to code or data not currently in physical memory, VMM moves some pages from physical memory to a storage area on disk called a pagefile. (See Figure 4.7.) VMM loads the code or data requested by the thread into the area of physical memory that is released by VMM. The virtual address space assigned to a process is divided up into either valid pages or invalid pages. Valid pages are those pages that are located in physical memory and are available to the process. Invalid pages are those pages that don't exist in physical memory. They aren't available to the process or stored on disk. When a thread requests access to an invalid page, the microprocessor issues a page fault. VMM intercepts, or traps, the page fault, locates the required page, and then loads it from disk into a free page frame in physical memory. Conversely, to free up physical memory, VMM takes the contents of certain pages and transfers them to disk. VMM performs three tasks as part of the paging process: It determines which pages to remove from physical memory when memory is full. VMM keeps track of the pages currently in memory for each process. This group of pages is referred to as a process's working set. VMM uses a local first-in, first-out replacement policy to decide which pages to move out of physical memory. The data that has been in physical memory for the longest is the first to be removed. When a thread generates a page fault, VMM examines the working set for the thread's process and then moves to disk the page that has resided in physical memory for the longest. It brings pages from disk into physical memory—a process called fetching. VMM also uses a method known as demand paging with clustering. Demand paging with clustering means that when a page fault is triggered, VMM loads the needed page into memory, plus some of the pages that surround it. This helps to reduce the number of page faults that are generated. It determines where to place pages retrieved from disk. If physical memory isn't full, VMM loads the data into the first free page. If physical memory is full, VMM determines which page or pages to move to disk to make room in physical memory for the pages retrieved from disk. Paging File Size When you install Windows 2000, Setup creates a virtual-memory paging file, Pagefile.sys, on the partition where you installed Windows 2000. The minimum paging file size is 2 MB. The default or recommended paging file size for Windows 2000 Professional is equal to 1.5 times the total amount of RAM. Typically, you can leave the size of the paging file set to the default value. In some circumstances, such as when you run a large number of applications simultaneously, you might want to use a larger paging file or multiple paging files. To configure the paging file, click Change in the Performance Options dialog box. The Virtual Memory dialog box identifies the drives on which the paging files reside and allows you to modify the paging file size for the selected drive. (See Figure 4.8.) Paging files never decrease below the initial size that was set during installation. Unused space in the paging file remains available to the internal Windows 2000 Virtual Memory Manager. If you set the size of the initial paging file significantly below the recommended size, Windows 2000 may display the Windows - Virtual Memory Minimum Too Low message box sometime after you log on following the change. (See Figure 4.9.) The message indicates that Windows is increasing the size of your virtual memory paging file. While this occurs, any programs you are running may run more slowly or they may pause because any memory requests by those applications may be denied. Only users with administrative rights can use the System program to increase the paging file size. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 17:21 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Обычно уровень RAID, который приходится выбирать - это компромисс стоимость/производительность/надёжность. В данном случае из уровней 0, 1, 1+0, 0+1, 5 - самое оптимальное будет решение 1. Это моё личное мнение. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 17:32 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
По винде - не ясно, если я, как администратор, гарантирую, что все приложения поместятся в physical memory, почему нельзя сделать pagefile меньше 2 Мб? Почему она может хотеть сделать его больше? Хорошая фраза - "...Windows 2000 may display the Windows - Virtual Memory Minimum Too Low message box sometime..." - когда и почему будет sometime, и какие факторы влияют на may :). До какого размера она его увеличит? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 17:41 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Я как-то в win2000 написал приложение на Java, которое коннектилось к MSSQL, делало запрос, и данные перегонялись в Oracle. Размер swap-файла был где-то 500Mb. Данные из MSSQL - тоже где-то так. На компе 256Mb. Драйвер для MSSQL2000 скачал с www.microsoft.com. Вобщем ничего у меня не вышло - сначала кончилась память ОЗУ(дошло где-то до 6Mb), потом кончился свап и всё рухнуло с сообщением Java Out of memory. Потом я сделал свап более 1Gb - процесс прошёл дальше, это продолжалось где-то более 1 часа. Но я так и не дождался пока в Oracle стали перегоняться записи, вырубил это всё к ..... Впрочем под Linux было всё тоже самое ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 17:53 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Sama winda page file ne uvelichit, tak i budet tebe soobshenija davatj i tormozitj poka ti sam page file ne uvelichish. Po povodu 2mb - vidimo kakoj to mininum vse ze nuzno swopitj po ljubomu. A voobshe ne stoit silno zamorachivatsja po povodu page file, nu i Oracle IHMO na win luchshe po vozmoznosti ne stavitj ))) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 17:58 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Я не ставил, он сам ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 18:10 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
2ppp Хорошая цитата. А откуда, что за источник? Обратите внимание на абзац: <blockquote> It determines which pages to remove from physical memory when memory is full. VMM keeps track of the pages currently in memory for each process. This group of pages is referred to as a process's working set. VMM uses a local first-in, first-out replacement policy to decide which pages to move out of physical memory. The data that has been in physical memory for the longest is the first to be removed. When a thread generates a page fault, VMM examines the working set for the thread's process and then moves to disk the page that has resided in physical memory for the longest. </blockquote> Если это конечно сильно не упрощено, то выходит какой-то примитивный алгоритм для вытеснения страниц. Ведь если страница долго находится в рабочем наборе процесса, значит она интенсивно используется. А тут ее на диск собираются вытеснять. С оговоркой выше, если сравнивать, то у Линукса более продвинутый алгоритм. Выходит, что так. Поскольку там рабочий набор делится на теплую и холодную части. Если страница в теплой, то она никак не будет выплюнута на диск. 2 билдер И не жалко ведь вам зеркало под page file ? Какой в этом смысл глубокий? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 18:24 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
ot killed eto iz Microsoft win2000 traning kit. Kak obichno v obshih chertah vrode ponjatno , a detali ne ogovarivajut. Nado pologatj VMM opredelaet snachala kakie dannie ne ispolzujutsa , a zatem uze iz nih vikidivaet samie starie. A inache dejstvitelno kakaja to erunda poluchaetsa. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 18:33 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
По умолчанию, 1/2 озу идет на системный кеш(читай - файловый) 1/2 на приложения... путем несложных манипуляций, можно изменить соотношение... но отсюда мораль: у меня на серв. 3 Гб озу. ора крутится на 1.5 Гб, так ? не совсем... реально физ.память будет выделятся по мере повышения загрузки системы i/o, но не выдет за пределы соотношения 1/2... ... ести SGA помещается в 1/2 физ.памяти, и при этом остается место под запускаемые процесы (oracle, напримен + все прочие приложения, которые будут запучены на компе), то sga свапится не будет... пример. озу- 3Гб свап - 5 гб системный кэш - 610 Мб блоки, перенесеннве в своп - 420мб Пик перенесенного кэша - 660мб. т.е. размер сис.кеша сожраного от озу ~ равен пику комитов блоков памаяти на диск... я обычно делаю большой свап, но счас попробую убить его до, скажем, 20 мб. о рез. напишу. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 18:35 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
>По умолчанию, 1/2 озу идет на системный кеш(читай - файловый) Это не файловый кэш. У виндовс такого нет. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 18:51 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
ну сделал... 20 мб. все работает... по моему, винде наср@ть на установки в меньшую сторону... грит, что мимит комиченной кеши равен озу... хм... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 19:01 |
|
||
|
pagefile (win)
|
|||
|---|---|---|---|
|
#18+
Da net , ne nasr@tj ))) Ti poprobuj zagruzitj chego nidudj eshe i ponabludaj za schetcikami Page Faults /sec ,pagefile % usage, Available Mb. Kak tolko RAM nachnet zqakanchivatsa swopitj nachnet so strashnoj siloj - a stalo bitj i tormozitj budet. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2003, 19:36 |
|
||
|
|

start [/forum/topic.php?fid=52&msg=32136087&tid=1991099]: |
0ms |
get settings: |
11ms |
get forum list: |
21ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
171ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
84ms |
get tp. blocked users: |
2ms |
| others: | 230ms |
| total: | 540ms |

| 0 / 0 |
