{"id":15697,"date":"2022-06-17T06:00:00","date_gmt":"2022-06-16T21:00:00","guid":{"rendered":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=15697"},"modified":"2022-06-17T06:00:00","modified_gmt":"2022-06-16T21:00:00","slug":"zram","status":"publish","type":"post","link":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=15697","title":{"rendered":"zram"},"content":{"rendered":"\n<p>Debian&#12398;&#12469;&#12540;&#12496;&#12540;&#12434;&#31435;&#12385;&#19978;&#12370;&#12414;&#12375;&#12383;&#12364;&#65292;&#20037;&#12375;&#12406;&#12426;&#12395;Linux&#12356;&#12376;&#12426;&#12398;&#27671;&#20998;&#12395;&#12394;&#12387;&#12390;&#65292;Manjaro ARM&#12434;&#24489;&#27963;&#12373;&#12379;&#12383;&#12426;&#12375;&#12390;&#36938;&#12435;&#12391;&#12365;&#12414;&#12375;&#12383;&#65294;<\/p>\n\n\n\n<p>&#12381;&#12398;&#20013;&#12391;&#27671;&#12364;&#12388;&#12356;&#12383;&#12398;&#12399;&#65292;&#26087;&#26469;&#65292;swap&#23554;&#29992;&#12497;&#12540;&#12486;&#12451;&#12471;&#12519;&#12531;&#12420;&#12523;&#12540;&#12488;&#12487;&#12451;&#12496;&#12452;&#12473;&#19978;&#12398;&#12501;&#12449;&#12452;&#12523;&#12434;swap&#12395;&#20351;&#12387;&#12390;&#12365;&#12414;&#12375;&#12383;&#12364;&#65292;&#26368;&#36817;&#12398;distro&#12391;&#12399;zram&#12392;&#12356;&#12358;&#12487;&#12451;&#12496;&#12452;&#12473;&#12434;swap&#12395;&#20351;&#12387;&#12390;&#12356;&#12427;&#12371;&#12392;&#12391;&#12377;&#65294;<\/p>\n\n\n\n<p>zram&#12395;&#12388;&#12356;&#12390;&#12399;&#65292;&#12493;&#12483;&#12488;&#12391;&#35519;&#12409;&#12428;&#12400;&#12356;&#12429;&#12356;&#12429;&#35443;&#12375;&#12367;&#26360;&#12356;&#12390;&#12354;&#12427;&#12392;&#24605;&#12356;&#12414;&#12377;&#12364;&#65292;&#20027;&#35352;&#25014;&#12398;&#19968;&#37096;&#12434;&#20206;&#24819;&#30340;&#12394;&#12487;&#12451;&#12473;&#12463;&#12395;&#20351;&#12358;&#12418;&#12398;&#12391;&#12377;&#65294;&#21516;&#12376;&#12367;&#20027;&#35352;&#25014;&#12434;&#20351;&#12358;tmpfs&#12392;&#12398;&#36949;&#12356;&#12399;&#65292;&#20445;&#23384;&#12377;&#12427;&#12487;&#12540;&#12479;&#12434;&#22311;&#32302;&#12377;&#12427;&#28857;&#12398;&#12424;&#12358;&#12391;&#12377;&#65294;<\/p>\n\n\n\n<p>&#12418;&#12385;&#12429;&#12435;&#65292;&#26087;&#26469;&#12398;&#12487;&#12451;&#12473;&#12463;&#65288;&#23455;&#12487;&#12451;&#12473;&#12463;&#65289;&#12398;swap&#12418;&#20341;&#29992;&#21487;&#33021;&#12391;&#12377;&#12364;&#65292;zram&#12395;&#12358;&#12435;&#12392;&#39640;&#12356;&#12503;&#12521;&#12452;&#12458;&#12522;&#12486;&#12451;&#12540;<sup class=\"modern-footnotes-footnote \" data-mfn=\"1\" data-mfn-post-scope=\"000000000000031f0000000000000000_15697\"><a href=\"javascript:void(0)\" role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-000000000000031f0000000000000000_15697-1\">1<\/a><\/sup><span id=\"mfn-content-000000000000031f0000000000000000_15697-1\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"1\">100&#12394;&#12393;&#65294;<\/span>&#12364;&#19982;&#12360;&#12425;&#12428;&#12390;&#65292;&#23455;&#12487;&#12451;&#12473;&#12463;&#12398;&#26041;&#12395;&#26360;&#12365;&#36796;&#12414;&#12428;&#12427;&#12371;&#12392;&#12399;&#12411;&#12392;&#12435;&#12393;&#12394;&#12356;&#12424;&#12358;&#12391;&#12377;&#65294;<\/p>\n\n\n\n<p>&#12371;&#12398;&#26041;&#27861;&#65292;Raspberry Pi&#12394;&#12393;&#12487;&#12451;&#12473;&#12463;&#12392;&#12375;&#12390;&#26360;&#12365;&#36796;&#12415;&#12364;&#20302;&#36895;&#12394;SD&#12459;&#12540;&#12489;&#12434;&#20351;&#12387;&#12390;&#12356;&#12427;&#22580;&#21512;&#29305;&#12395;&#21177;&#26524;&#30340;&#12394;&#12398;&#12399;&#12356;&#12358;&#12414;&#12391;&#12418;&#12354;&#12426;&#12414;&#12379;&#12435;&#65294;<\/p>\n\n\n\n<p>&#27531;&#24565;&#12394;&#12364;&#12425;SlackwareARM 15.0&#12391;&#12399;&#12487;&#12501;&#12457;&#12523;&#12488;&#12391;&#12399;zram&#12364;&#20351;&#12431;&#12428;&#12414;&#12379;&#12435;&#12364;&#65292;&#12493;&#12483;&#12488;&#12398;&#24773;&#22577;&#12434;&#21442;&#32771;&#12395;&#12375;&#12390;&#35373;&#23450;&#12375;&#12383;&#12425;&#65292;&#12358;&#12414;&#12367;&#21205;&#12367;&#12424;&#12358;&#12395;&#12394;&#12426;&#12414;&#12375;&#12383;&#65294;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ swapon<br>NAME TYPE SIZE USED PRIO<br>\/dev\/sda2 partition 4G 0B -2<br>\/dev\/zram0 partition 4G 0B 100<\/pre>\n\n\n\n<p>&#12371;&#12435;&#12394;&#24863;&#12376;&#12391;&#12377;&#65294;<\/p>\n\n\n\n<p>&#19979;&#35352;&#12398;&#12506;&#12540;&#12472;&#12434;&#21442;&#32771;&#12395;&#12375;&#12414;&#12375;&#12383;&#65294;&#20803;&#35352;&#20107;&#12391;&#12399;zram0&#12316;3&#12414;&#12391;&#12398;4&#12388;&#65292;&#12381;&#12428;&#12382;&#12428;&#12398;&#12469;&#12452;&#12474;&#12434;512MB&#12395;&#12375;&#12390;&#12356;&#12414;&#12377;&#12364;&#65292;&#31558;&#32773;&#12398;&#22580;&#21512;&#12399;&#65292;zram0&#12402;&#12392;&#12388;&#12384;&#12369;&#20316;&#12387;&#12390;&#65292;&#12381;&#12398;&#20195;&#12431;&#12426;&#12469;&#12452;&#12474;&#12434;4GB&#12395;&#12375;&#12414;&#12375;&#12383;&#65288;RAM 8GB&#12398;&#12510;&#12471;&#12531;&#12391;&#12377;&#65289;&#65294;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/docs.slackware.com\/howtos:hardware:arm:zram_slackware_arm_and_arm64\">Zram in Slackware ARM and ARM64 Architectures <\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Debian\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3057\u305f\u304c\uff0c\u4e45\u3057\u3076\u308a\u306bLinux\u3044\u3058\u308a\u306e\u6c17\u5206\u306b\u306a\u3063\u3066\uff0cManjaro ARM\u3092\u5fa9\u6d3b\u3055\u305b\u305f\u308a\u3057\u3066\u904a\u3093\u3067\u304d\u307e\u3057\u305f\uff0e \u305d\u306e\u4e2d\u3067\u6c17\u304c\u3064\u3044\u305f\u306e\u306f\uff0c\u65e7\u6765\uff0cswap\u5c02\u7528\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3084\u30eb\u30fc\u30c8\u30c7\u30a3\u30d0\u30a4\u30b9\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u3092swap\u306b\u4f7f\u3063\u3066\u304d\u307e\u3057\u305f\u304c\uff0c\u6700\u8fd1\u306edistro\u3067\u306fzram\u3068\u3044\u3046\u30c7\u30a3\u30d0\u30a4\u30b9\u3092swap\u306b\u4f7f\u3063\u3066\u3044\u308b\u3053\u3068\u3067\u3059\uff0e zram\u306b\u3064\u3044\u3066\u306f\uff0c\u30cd\u30c3\u30c8\u3067\u8abf\u3079\u308c\u3070\u3044\u308d\u3044\u308d\u8a73\u3057\u304f\u66f8\u3044\u3066\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\uff0c\u4e3b\u8a18\u61b6\u306e\u4e00\u90e8\u3092\u4eee\u60f3\u7684\u306a\u30c7\u30a3\u30b9\u30af\u306b\u4f7f\u3046\u3082\u306e\u3067\u3059\uff0e\u540c\u3058\u304f\u4e3b\u8a18\u61b6\u3092\u4f7f\u3046tmpfs\u3068\u306e\u9055\u3044\u306f\uff0c\u4fdd\u5b58\u3059\u308b\u30c7\u30fc\u30bf\u3092\u5727\u7e2e\u3059\u308b\u70b9\u306e\u3088\u3046\u3067\u3059\uff0e \u3082\u3061\u308d\u3093\uff0c\u65e7\u6765\u306e\u30c7\u30a3\u30b9\u30af\uff08\u5b9f\u30c7\u30a3\u30b9\u30af\uff09\u306eswap\u3082\u4f75\u7528\u53ef\u80fd\u3067\u3059\u304c\uff0czram\u306b\u3046\u3093\u3068\u9ad8\u3044\u30d7\u30e9\u30a4\u30aa\u30ea\u30c6\u30a3\u30fc\u304c\u4e0e\u3048\u3089\u308c\u3066\uff0c\u5b9f\u30c7\u30a3\u30b9\u30af\u306e\u65b9\u306b\u66f8\u304d\u8fbc\u307e\u308c\u308b\u3053\u3068\u306f\u307b\u3068\u3093\u3069\u306a\u3044\u3088\u3046\u3067\u3059\uff0e \u3053\u306e\u65b9\u6cd5\uff0cRaspberry Pi\u306a\u3069\u30c7\u30a3\u30b9\u30af\u3068\u3057\u3066\u66f8\u304d\u8fbc\u307f\u304c\u4f4e\u901f\u306aSD\u30ab\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u7279\u306b\u52b9\u679c\u7684\u306a\u306e\u306f\u3044\u3046\u307e\u3067\u3082\u3042\u308a\u307e\u305b\u3093\uff0e \u6b8b\u5ff5\u306a\u304c\u3089SlackwareARM 15.0\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fzram\u304c\u4f7f\u308f\u308c\u307e\u305b\u3093\u304c\uff0c\u30cd\u30c3\u30c8\u306e\u60c5\u5831\u3092\u53c2\u8003\u306b\u3057\u3066\u8a2d\u5b9a\u3057\u305f\u3089\uff0c\u3046\u307e\u304f\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e $ swaponNAME TYPE SIZE USED PRIO\/dev\/sda2 partition 4G 0B -2\/dev\/zram0 partition 4G 0B 100 \u3053\u3093\u306a\u611f\u3058\u3067\u3059\uff0e \u4e0b\u8a18\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\uff0e\u5143\u8a18\u4e8b\u3067\u306fzram0\u301c3\u307e\u3067\u306e4\u3064\uff0c\u305d\u308c\u305e\u308c\u306e\u30b5\u30a4\u30ba\u3092512MB\u306b\u3057\u3066\u3044\u307e\u3059\u304c\uff0c\u7b46\u8005\u306e\u5834\u5408\u306f\uff0czram0\u3072\u3068\u3064\u3060\u3051\u4f5c\u3063\u3066\uff0c\u305d\u306e\u4ee3\u308f\u308a\u30b5\u30a4\u30ba\u30924GB\u306b\u3057\u307e\u3057\u305f\uff08RAM 8GB\u306e\u30de\u30b7\u30f3\u3067\u3059\uff09\uff0e Zram in Slackware ARM and ARM64 Architectures<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_daextam_enable_autolinks":"","footnotes":""},"categories":[8,27],"tags":[],"class_list":["post-15697","post","type-post","status-publish","format-standard","hentry","category-linux","category-rasapberry-pi"],"publishpress_future_action":{"enabled":false,"date":"2026-04-14 19:06:31","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category","extraData":[]},"publishpress_future_workflow_manual_trigger":{"enabledWorkflows":[]},"_links":{"self":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts\/15697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15697"}],"version-history":[{"count":0,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts\/15697\/revisions"}],"wp:attachment":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}