{"id":1781,"date":"2018-10-18T21:32:54","date_gmt":"2018-10-18T13:32:54","guid":{"rendered":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/?p=1781"},"modified":"2019-02-12T20:11:42","modified_gmt":"2019-02-12T12:11:42","slug":"jemalloc","status":"publish","type":"post","link":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2018\/10\/18\/jemalloc\/","title":{"rendered":"jemalloc"},"content":{"rendered":"<p>\u770b\u5230\u4e00\u4e2aredis\u65b0\u7248\u672c\u53d1\u5e03\u7684\u65b0\u95fb\uff0c\u6ce8\u610f\u5230\u5176\u4e2d\u7684\u5185\u5b58\u7ba1\u7406\u91c7\u7528\u4e86jemalloc\uff0c\u66ff\u4ee3\u6807\u51c6gcc\u4e2d\u7684malloc\u3002\u641c\u7d22\u4e86\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u611f\u89c9jemalloc\u662f\u4e2a\u76f8\u5f53\u4e0d\u9519\u7684\u5185\u5b58\u7ba1\u7406\u6a21\u5757\uff0c\u5c24\u5176\u5728\u788e\u7247\u5316\u7ba1\u7406\u65b9\u9762\u5f88\u5438\u5f15\u4eba\u3002\u4f5c\u4e3a\u9700\u8981\u957f\u671f\u8fd0\u884c\u7684\u670d\u52a1\u5668\u8f6f\u4ef6\uff0c\u5185\u5b58\u7ba1\u7406\u65b9\u9762\u7684\u786e\u662f\u9700\u8981\u614e\u91cd\u8003\u8651\uff0cjemalloc \u6709facebook\u8fd9\u6837\u7684\u5927\u5382\u652f\u6301\uff0c\u53c8\u6709redis\u505a\u80cc\u4e66\uff0c\u503c\u5f97\u6211\u4eec\u5c1d\u8bd5\u3002<\/p>\n<p>\u5728Debian\u7cfb\u7edf\u4e2d\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5jemalloc\u7684dev\u5e93\uff1a<\/p>\n<blockquote><p>sudo apt install libjemalloc-dev<\/p><\/blockquote>\n<p>\u5b89\u88c5\u540e\uff0c\u5934\u6587\u4ef6\u5728\u4ee5\u4e0b\u76ee\u5f55\uff1a<\/p>\n<blockquote><p>\/usr\/include\/jemalloc<\/p><\/blockquote>\n<p>\u5e93\u6587\u4ef6\u5728\u4ee5\u4e0b\u76ee\u5f55\uff08X86\u7cfb\u7edf\uff09\uff1a<\/p>\n<blockquote><p>\/usr\/lib\/x86_64-linux-gnu<\/p><\/blockquote>\n<p>\u6216\u8005\u4ee5\u4e0b\u76ee\u5f55\uff08Raspberry Pi\uff09\uff1a<\/p>\n<blockquote><p>\/usr\/lib\/arm-linux-gnueabihf<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u770b\u5230\u4e00\u4e2aredis\u65b0\u7248\u672c\u53d1\u5e03\u7684\u65b0\u95fb\uff0c\u6ce8\u610f\u5230\u5176\u4e2d\u7684\u5185\u5b58\u7ba1\u7406\u91c7\u7528\u4e86jemalloc\uff0c\u66ff\u4ee3\u6807\u51c6gcc\u4e2d\u7684malloc\u3002\u641c\u7d22\u4e86\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u611f\u89c9jemalloc\u662f\u4e2a\u76f8\u5f53\u4e0d&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2018\/10\/18\/jemalloc\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[708,709,710],"class_list":["post-1781","post","type-post","status-publish","format-standard","hentry","category-6","tag-708","tag-709","tag-710"],"_links":{"self":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/comments?post=1781"}],"version-history":[{"count":1,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1781\/revisions"}],"predecessor-version":[{"id":1782,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1781\/revisions\/1782"}],"wp:attachment":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/media?parent=1781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/categories?post=1781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/tags?post=1781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}