# Hugepage 란?


일반적인 컴퓨팅 시스템은 물리적 메모리 크기를 극복하기 위해 가상메모리 기법을 사용하며, 상이한 두 메모리를 매핑하기 위해 Page Table이 존재하고 Page 단위로 관리됩니다. 리눅스 시스템의 경우 보통 4k로 되어있습니다.


대용량 메모리를 장착한 시스템의 효율적인 Page Table 관리를 위해 Kernel 2.6부터는 HugePage 기술이 도입되어 더 큰 Page 크기(예 : 2M ~ 256M)로 관리 할 수 있게 되었습니다.


 


# 설정 방법


1. 서버에 있는 모든 인스턴스를 뛰웁니다. 단 AMM 설정은 되어 있으면 안됩니다.


2. MOS에서 Note 401749.1의 스크립트를 이용하여 필요한 Hugepages 값을 찾습니다.

$ sh huge.sh
Recommended setting: vm.nr_hugepages = 9222

3 . 값을 설정 합니다.


sysctl –w vm.nr_hugepages=9222


4. 서버가 Reboot 되더라도 설정값을 유지하기 위해서는 /etc/sysctl.conf에 vmm.nr_hugepages
= 9222 를 설정합니다.


5. DBMS 파라미터에서 USE_LARGE_PAGES=ONLY 로 설정 후 DB를 Restart 합니다.


6. “$ grep Huge /proc/meminfo” 명령어로 Huge Page사용량을 확인합니다.

By haisins

오라클 DBA 박용석 입니다. haisins@gmail.com 으로 문의 주세요.

13 thoughts on “Hugepages 설정 방법”
  1. Hi there, just became alert to your blog through Google,
    and found that it’s truly informative. I’m going to watch out for brussels.
    I’ll be grateful if you continue this in future.
    Lots of people will be benefited from your writing.
    Cheers!

    creditos rapidos sin papeles [Antonetta]

  2. What’s up to all, how is everything, I think every one is getting more from this web site, and your views are fastidious in favor of new users.

  3. Howdy just wanted to give you a quick heads up and let you know a few of the pictures aren’t loading properly.
    I’m not sure why but I think its a linking issue.
    I’ve tried it in two different internet browsers and both show the same results.

  4. I’m not sure exactly why but this site is loading very slow
    for me. Is anyone else having this issue or is it a problem
    on my end? I’ll check back later on and see if the problem still exists.

  5. It’s appropriate time to make some plans for the future and it is time to be happy.
    I’ve learn this publish and if I may just I want to counsel you few
    fascinating issues or suggestions. Perhaps you could write
    subsequent articles relating to this article.
    I wish to learn even more things approximately it!

  6. Hello, this weekend is pleasant designed for me, as this occasion i am reading
    this fantastic educational article here at my house.

  7. I’m really inspired along with your writing abilities as smartly
    as with the format to your blog. Is this a paid subject or did you customize it your self?
    Either way keep up the nice high quality writing, it’s uncommon to peer a great weblog like this one these days..

  8. This is the perfect web site for anybody who wishes to understand this topic.

    You understand so much its almost tough to argue with you (not that I personally would want to…HaHa).
    You certainly put a brand new spin on a subject that’s been discussed for many years.
    Wonderful stuff, just wonderful!

  9. Fascinating blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple adjustements would really make my blog jump out. Please let me know where you got your theme. With thanks

  10. I simply want to tell you that I’m new to blogging and honestly liked your web-site. Most likely I’m want to bookmark your blog . You certainly come with wonderful writings. Thanks for sharing with us your blog.

답글 남기기

이메일 주소를 발행하지 않을 것입니다. 필수 항목은 *(으)로 표시합니다