Hugepages 설정 방법


# 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사용량을 확인합니다.


Comments

comments

haisins

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

Hugepages 설정 방법”의 11개의 댓글

  • 2018-09-19 5:38 오전
    Permalink

    I was suggested this web site by my cousin. I am not sure
    whether this post is written by him as no one else know such detailed about my trouble.

    You are amazing! Thanks!

    댓글달기
  • 2018-09-29 8:31 오전
    Permalink

    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]

    댓글달기
  • 2018-10-24 5:36 오전
    Permalink

    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.

    댓글달기
  • 2018-11-22 12:33 오전
    Permalink

    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.

    댓글달기
  • 2018-12-03 8:55 오전
    Permalink

    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.

    댓글달기
  • 2018-12-22 4:22 오전
    Permalink

    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!

    댓글달기
  • 2018-12-22 4:15 오후
    Permalink

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

    댓글달기
  • 2019-02-01 4:51 오후
    Permalink

    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..

    댓글달기
  • 2019-02-05 12:02 오후
    Permalink

    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!

    댓글달기
  • 2019-05-29 8:26 오후
    Permalink

    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

    댓글달기

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다