{"id":816,"date":"2011-02-16T17:54:09","date_gmt":"2011-02-16T14:54:09","guid":{"rendered":"http:\/\/www.unixpin.com\/wordpress\/?p=816"},"modified":"2011-02-16T17:54:09","modified_gmt":"2011-02-16T14:54:09","slug":"zfs-multi-stream-read","status":"publish","type":"post","link":"https:\/\/www.unixpin.com\/?p=816","title":{"rendered":"ZFS \u0438 \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432"},"content":{"rendered":"<p>\u041f\u0440\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0441 ZFS \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u0432\u0435\u0449\u044c, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0434\u0438\u0441\u043a\u043e\u0432 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430 \u043b\u0435\u043d\u0442\u044b:<\/p>\n<p><code># iostat -xnz 3 | egrep 'ABCF|rmt'<br \/>\n...<br \/>\n683.7    0.0 <strong>87239.8<\/strong> 0.0  0.0  9.9    0.0   14.5   1 100 c12t600C0FF0000000000ABCF1150B265F00d0<br \/>\n0.0   50.3    0.0 <strong>12887.6<\/strong> 0.0  0.1    0.0    1.9   0  10 rmt\/1<br \/>\n0.0  109.1    0.0 <strong>27926.0<\/strong> 0.0  0.2    0.0    2.1   0  23 rmt\/2<br \/>\n691.9    0.0 88372.5    0.0  0.0  9.9    0.0   14.4   1 100 c12t600C0FF0000000000ABCF1150B265F00d0<br \/>\n0.0   59.2    0.0 15146.3  0.0  0.1    0.0    2.0   0  12 rmt\/1<br \/>\n0.0  112.1    0.0 28692.7  0.0  0.2    0.0    1.9   0  22 rmt\/2<br \/>\n<\/code><\/p>\n<p>\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043f\u043e  <code>zpool iostat<\/code> \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 &#8212; \u0447\u0442\u0435\u043d\u0438\u0435 \u0441 \u043f\u0443\u043b\u0430 \u0438\u0434\u0435\u0442 80-90\u041c\u0411. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430 \u043b\u0435\u043d\u0442\u044b &#8212; \u0440\u0430\u0437\u0430 \u0432 \u0434\u0432\u0430 \u043c\u0435\u043d\u044c\u0448\u0435. \u041a\u0443\u0434\u0430 \u0434\u0435\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435???? ;)<br \/>\n<!--more--><br \/>\n\u041d\u0443 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e ZFS ARC &#171;\u043e\u0447\u0435\u043d\u044c \u0443\u043c\u043d\u043e&#187; \u0447\u0438\u0442\u0430\u0435\u0442 \u0441 \u043f\u0440\u0435\u043b\u043e\u0430\u0434, \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442 \u0438\u0445 \u0438 \u0442\u0443\u0442 \u0436\u0435 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0442\u0435\u0441\u043d\u044f\u044e\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c \u0447\u0442\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c?<br \/>\n\u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u044d\u0442\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435:<\/p>\n<p><code># zfs get all zARCH\/arch |grep cache<br \/>\nzARCH\/arch                   primarycache          all                           default<br \/>\nzARCH\/arch                   secondarycache        all                           default<br \/>\n# zfs set primarycache=metadata zARCH\/arch<br \/>\n# zfs set secondarycache=metadata zARCH\/arch<br \/>\n# zfs get all zARCH\/arch |grep cache<br \/>\nzARCH\/arch                  primarycache          metadata                      local<br \/>\nzARCH\/arch                  secondarycache        metadata                      local<\/code><\/p>\n<p>\u043d\u0443 \u0432\u043e\u0442, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u043e\u043a:<\/p>\n<p><code># iostat -xnz 3 | egrep 'ABCF|rmt'<br \/>\n...<br \/>\n  116.0   48.9 84823.9 6094.3  0.0  2.7    0.0   16.7   0  98 c12t600C0FF0000000000ABCF1150B265F00d0<br \/>\n    0.0   11.3    0.0 16899.3  0.0  0.0    0.0    2.0   0   13 rmt\/1<br \/>\n    0.0   10.8    0.0 13768.1  0.0  0.0    0.0    2.1   0   12 rmt\/0<br \/>\n    0.0   12.3    0.0 18150.9  0.0  0.0    0.0    2.2   0   10 rmt\/2<br \/>\n    0.0   12.9    0.0 13294.0  0.0  0.0    0.0    2.1   0   12 rmt\/3<br \/>\n    0.0   12.8    0.0 15284.4  0.0  0.0    0.0    2.0   0   13 rmt\/4<br \/>\n    0.0   12.1    0.0 17099.1  0.0  0.0    0.0    1.9   0   18 rmt\/5<\/code><\/p>\n<p>PS \u0415\u0441\u043b\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0443 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0438 \u043e\u043d\u0430 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f ( \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432 \/etc\/system zfs:zfs_arc_max ), \u0442\u043e \u0442\u0430\u043a\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0438 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c ;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0441 ZFS \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u0432\u0435\u0449\u044c, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0434\u0438\u0441\u043a\u043e\u0432 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430 \u043b\u0435\u043d\u0442\u044b: # iostat -xnz 3 | egrep &#8216;ABCF|rmt&#8217; &#8230; 683.7 0.0 87239.8 0.0 0.0 9.9 0.0 14.5 1 100 c12t600C0FF0000000000ABCF1150B265F00d0 0.0 50.3 0.0 12887.6 0.0 0.1 0.0 1.9 0 10 rmt\/1 0.0 109.1 0.0 27926.0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,899,40],"tags":[924,337,122,238,925,546,117],"class_list":["post-816","post","type-post","status-publish","format-standard","hentry","category-solaris","category-unix-solaris-zfs","category-netbackup","tag-arc","tag-backup","tag-iostat","tag-performance","tag-preload","tag-veritas-netbackup","tag-zfs"],"_links":{"self":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=816"}],"version-history":[{"count":3,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/816\/revisions"}],"predecessor-version":[{"id":819,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/816\/revisions\/819"}],"wp:attachment":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}