HP-UX
1752780 회원
6176 온라인
108789 솔루션
새 메시지

pseudo swap에 대한 질문입니다.

 
윤창진
비정기 기여자

pseudo swap에 대한 질문입니다.

안녕하세요..

pseudo swap에 대해 알아보려고 HP 교육자료를 찾아보니 실제 메모리를 swap공간으로 사용하지 않고 device swap에 paging을 하는걸로 나와있더군요.

그런데 glance에서 'w'화면을 보면 pseudo swap이 device swap보다 used 양이 많고 우선순위가 -1로 되어 있습니다. 이 의미는 뭔지 모르겠네요..혹시 정확히 아시는 분 계시면 답변 부탁드립니다.
2 응답 2
김병수
본과생

pseudo swap에 대한 질문입니다.

제가 가지고 있는 자료의 내용을 capture합니다.



seudo-swap 은 시스템의 MEMORY 를 swap 공간으로 사용할수 있도록 해주는 것을 말합니다. 즉, HP-UX 에서 swap space 는시스템 MEMORY 의 7/8 ( 87.5%) 까지를 swap 으로 구성할 수 있습니다.





HP-UX 에서는 임의의 process 가 실행되기 위해서는 swap 공간에 전체 process 크기만큼의 공간을 예약할 수 있어야 합니다. 즉, swap space 가 부족하면 process 를 더 이상 실행시킬 수 가 없게 됩니다. 이것은 page out 될 때를 대비해서 swap 공간을 미리 예약하는 것입니다.



예를 들어, 1GB 의 시스템 MEMORY 와 1GB 의 device swap 및 file system swap 을 가진 시스템은 1GB 까지만 process 들을 실행시킬 수 있지만, pseudo-swap 을 사용하게되면 1.87 GB 까지 process 들을 실행시킬 수 있게 되어 virtual memory 공간을 아주 크게 사용할 수 있게 됩니다.



시스템에서 pseudo swap 을 사용할 수 있도록 하려면 kernel parameter 인 swapmem_on 을 1 로 해줍니다.









강재구
조언자

pseudo swap에 대한 질문입니다.

김병수님의 답변 내용에 첨부하자면...

11.11에서 swap space는 physical MEMORY 의 7/8 ( 87.5%) 까지

를 swap 으로 구성되고, 11.23에서 swap space는 physical MEMORY와 동등하게 swap 으로 구성됩니다. 아래 관련 내용입니다.



11,23; swapinfo pseudoswap (memory) line differs from 11.11

11,23; swapinfo pseudoswap (memory) line differs from 11.11



DocId: KBRC00016849 Updated: 5/26/05 1:10:00 AM



PROBLEM



The initial value (AVAIL column) of memory pseudoswap (the memory line)

on HP-UX 11.23 is equal to the amount of installed physical memory

on the system.



For example:



# swapinfo

Kb Kb Kb PCT START/ Kb

TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME

dev 4194304 969040 3225264 23% 0 - 1 /dev/vg00/lvol2

reserve - 2615228 -2615228

memory 2085640 1483352 602288 71%



where 2085640 kB is equal to the amount of RAM installed in the system.



This is different from HP-UX 11.11 where the initial value was a calculated

number. Why?





CONFIGURATION



HP-UX 11i v2 (11.23)





RESOLUTION



The initial (AVAIL) value for memory pseudoswap is no longer

value calculated to be the amount of free memory for user

processes at boot time as it was on HP-UX 11.11.

Instead the initial value on HP-UX 11.23 is equal

to the amount of physical memory.



The above described change was introduced with the update of Memory

Resource Groups (MRG) feature in HP-UX 11.23.

The change has no impact to the system behaviour as the correct amount

of available memory for memory pseudoswap is reflected in

FREE column of the swapinfo output as it was on HP-UX 11.11.



HP ONLY

The change came from JAGae74381.

See also KMINE 4000080444.

ALT KEYWORDS

swapinfo, pseudo-swap, pseudoswap

Original KMine RCEN KBRC00016849