{"id":436,"date":"2011-12-30T22:25:43","date_gmt":"2011-12-30T14:25:43","guid":{"rendered":"https:\/\/yangtingkun.net\/?p=436"},"modified":"2011-12-31T16:28:24","modified_gmt":"2011-12-31T08:28:24","slug":"%e4%bd%bf%e7%94%a8huge-pages%e5%90%8e%e6%95%b0%e6%8d%ae%e5%ba%93%e5%90%af%e5%8a%a8%e5%a4%b1%e8%b4%a5","status":"publish","type":"post","link":"https:\/\/yangtingkun.net\/?p=436","title":{"rendered":"\u4f7f\u7528Huge Pages\u540e\u6570\u636e\u5e93\u542f\u52a8\u5931\u8d25"},"content":{"rendered":"<p>\u5728\u914d\u7f6eHuge Pages\u540e\uff0c\u542f\u52a8\u6570\u636e\u5e93\u53cd\u5e94\u5f88\u6162\uff0c\u6570\u636e\u5e93\u65e0\u6cd5\u6b63\u5e38\u6253\u5f00\u3002<br \/>\n\u68c0\u67e5\u544a\u8b66\u65e5\u5fd7\uff0c\u53d1\u73b0\u4e0b\u9762\u7684\u9519\u8bef\uff1a<\/p>\n<pre lang='SQL'>Fri Dec 30 13:38:11 2011\r\nStarting ORACLE instance (normal)\r\n****************** Huge Pages Information *****************\r\nHuge Pages memory pool detected (total: 34596 free: 34596)\r\nMemlock limit too small: 67584000000 to accommodate segment size: 68587356160\r\nHuge Pages allocation failed (free: 34596 required: 32705)\r\nAllocation will continue with default\/smaller page size\r\n**********************************************************<\/pre>\n<p>\u663e\u7136\u8fd9\u662f\u914d\u7f6e\u4e2d\u8bbe\u7f6e\u7684\u7a7a\u95f4\u4e0d\u8db3\u6240\u81f4\uff0c\u624b\u5de5\u4fee\u6539limits.conf\u6587\u4ef6\uff1a<\/p>\n<pre lang='SQL'>[oracle@hpc ~]$ more \/etc\/security\/limits.conf \r\n# \/etc\/security\/limits.conf\r\n#\r\n#Each line describes a limit for a user in the form:\r\n#\r\n#<domain>        <type>  <item>  <value>\r\n#\r\n#Where:\r\n#<domain> can be:\r\n#        - an user name\r\n#        - a group name, with @group syntax\r\n#        - the wildcard *, for default entry\r\n#        - the wildcard %, can be also used with %group syntax,\r\n#                 for maxlogin limit\r\n#\r\n#<type> can have the two values:\r\n#        - \"soft\" for enforcing the soft limits\r\n#        - \"hard\" for enforcing hard limits\r\n#\r\n#<item> can be one of the following:\r\n#        - core - limits the core file size (KB)\r\n#        - data - max data size (KB)\r\n#        - fsize - maximum filesize (KB)\r\n#        - memlock - max locked-in-memory address space (KB)\r\n#        - nofile - max number of open files\r\n#        - rss - max resident set size (KB)\r\n#        - stack - max stack size (KB)\r\n#        - cpu - max CPU time (MIN)\r\n#        - nproc - max number of processes\r\n#        - as - address space limit (KB)\r\n#        - maxlogins - max number of logins for this user\r\n#        - maxsyslogins - max number of logins on the system\r\n#        - priority - the priority to run user process with\r\n#        - locks - max number of file locks the user can hold\r\n#        - sigpending - max number of pending signals\r\n#        - msgqueue - max memory used by POSIX message queues (bytes)\r\n#        - nice - max nice priority allowed to raise to values: [-20, 19]\r\n#        - rtprio - max realtime priority\r\n#\r\n#<domain>      <type>  <item>         <value>\r\n#\r\n\r\n#*               soft    core            0\r\n#*               hard    rss             10000\r\n#@student        hard    nproc           20\r\n#@faculty        soft    nproc           20\r\n#@faculty        hard    nproc           50\r\n#ftp             hard    nproc           0\r\n#@student        -       maxlogins       4\r\n\r\n# End of file\r\noracle              soft    nproc   16384\r\noracle              hard    nproc   16384\r\noracle              soft    nofile  65536\r\noracle              hard    nofile  65536\r\noracle              soft    memlock 268435456\r\noracle              hard    memlock 268435456<\/pre>\n<p>\u4e0d\u8fc7\u4fee\u6539\u540e\u53d1\u73b0\u5e76\u672a\u751f\u6548\uff0c\u542f\u52a8\u6570\u636e\u5e93\u65f6\u73b0\u8c61\u4f9d\u65e7\uff0c\u9519\u8bef\u4fe1\u606f\u4f9d\u65e7\uff0c\u8bb0\u5f97\u914d\u7f6e\u8fd9\u4e2a\u53c2\u6570\u662f\u4e0d\u9700\u8981\u91cd\u542f\u670d\u52a1\u5668\u7684\uff0c\u4e0d\u8fc7\u65e2\u7136\u4e0d\u751f\u6548\uff0c\u53ea\u597d\u91cd\u542f\u4e00\u4e0b\u7cfb\u7edf\u3002<br \/>\n\u7cfb\u7edf\u91cd\u542f\u540e\uff0c\u6570\u636e\u5e93\u542f\u52a8\u6b63\u5e38\uff0c\u544a\u8b66\u65e5\u5fd7\u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n<pre lang='SQL'>Starting ORACLE instance (normal)\r\n****************** Huge Pages Information *****************\r\nHuge Pages memory pool detected (total: 32768 free: 32768)\r\nDFLT Huge Pages allocation successful (allocated: 32705)\r\n***********************************************************<\/pre>\n<p>\u770b\u6765memlock\u53c2\u6570\u7684\u4fee\u6539\u8fd8\u662f\u9700\u8981\u91cd\u542f\u624d\u80fd\u751f\u6548\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u914d\u7f6eHuge Pages\u540e\uff0c\u542f\u52a8\u6570\u636e\u5e93\u53cd\u5e94\u5f88\u6162\uff0c\u6570\u636e\u5e93\u65e0\u6cd5\u6b63\u5e38\u6253\u5f00\u3002 \u68c0\u67e5\u544a\u8b66\u65e5\u5fd7\uff0c\u53d1\u73b0\u4e0b\u9762\u7684\u9519\u8bef\uff1a Fri Dec 30 13:38:11 2011 Starting ORACLE instance (normal) ****************** Huge Pages Information ***************** Huge Pages memory pool detected (total: 34596 free: 34596) Memlock limit too small: 67584000000 to accommodate segment size: 68587356160 Huge Pages allocation failed &hellip; <a href=\"https:\/\/yangtingkun.net\/?p=436\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[337,338,339],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2yiY3-72","_links":{"self":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/436"}],"collection":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=436"}],"version-history":[{"count":1,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":437,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/436\/revisions\/437"}],"wp:attachment":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}