{"id":578,"date":"2015-05-13T11:02:37","date_gmt":"2015-05-13T11:02:37","guid":{"rendered":"http:\/\/www.tech-g.com\/?p=578"},"modified":"2015-05-14T09:22:32","modified_gmt":"2015-05-14T09:22:32","slug":"installing-enhanceio-on-debian-jessie-or-wheezy","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2015\/05\/13\/installing-enhanceio-on-debian-jessie-or-wheezy\/","title":{"rendered":"Installing enhanceio on debian Jessie (Not wheezy or squeez, minimum kernel 3.7 onwards)"},"content":{"rendered":"<p>Using enhanceio (the flashcache fork)<\/p>\n<p>First, on a debian system, you need to compile enhanceio because debian have not yet released anything for it (2015-05-13)<\/p>\n<pre>\r\napt-get install git make gcc pkg-config uuid openssl util-linux uuid-dev libblkid-dev python\r\napt-get install build-essential\r\napt-get install linux-headers-$(uname -r)\r\n<\/pre>\n<p>Now let us download enhanceio<\/p>\n<pre>\r\ngit clone https:\/\/github.com\/stec-inc\/EnhanceIO.git\r\ncd EnhanceIO\/Driver\/enhanceio\/\r\nmake && make install\r\n\r\nOn make install you will see\r\nmake[1]: Leaving directory '\/usr\/src\/linux-headers-3.16.0-4-amd64'\r\ninstall -o root -g root -m 0755 -d \/lib\/modules\/3.16.0-4-amd64\/extra\/enhanceio\/\r\ninstall -o root -g root -m 0755 enhanceio.ko \/lib\/modules\/3.16.0-4-amd64\/extra\/enhanceio\/\r\ninstall -o root -g root -m 0755 enhanceio_rand.ko \/lib\/modules\/3.16.0-4-amd64\/extra\/enhanceio\/\r\ninstall -o root -g root -m 0755 enhanceio_fifo.ko \/lib\/modules\/3.16.0-4-amd64\/extra\/enhanceio\/\r\ninstall -o root -g root -m 0755 enhanceio_lru.ko \/lib\/modules\/3.16.0-4-amd64\/extra\/enhanceio\/\r\n\r\ncd \/lib\/modules\/3.16.0-4-amd64\/extra\/enhanceio\/\r\ninsmod enhanceio.ko\r\ninsmod enhanceio_fifo.ko\r\ninsmod enhanceio_lru.ko\r\n\r\n#Now check that it is loaded as a kernel module with (HINT: Will it be there after reboot ?)\r\nlsmod | grep enhanceio\r\n\r\ncd ..\/..\/CLI\/\r\ncp eio_cli \/sbin\/\r\ncp eio_cli.8 \/usr\/share\/man\/man8\r\n<\/pre>\n<p>Now that we have installed and compiled enhanceio, we will simply use it, we are all done, unlike bcache and dmcache, there is minimal setup for this kind of ssd\/flash thumb stick.<\/p>\n<p>Now in my setup, i want sdb to act as an SSD cache for sdc1<\/p>\n<pre>\r\neio_cli create -d \/dev\/sdc1 -s \/dev\/sdb1 -p lru -m ro -c main_disk_cache\r\n<\/pre>\n<p>The output of that command was as follows, this result can also be obtained with the command &#8220;eio_cli info&#8221;, or for super detail &#8220;cat \/proc\/enhanceio\/main_disk_cache\/stats&#8221;<\/p>\n<pre>\r\nCache Name       : main_disk_cache\r\nSource Device    : \/dev\/sdc1\r\nSSD Device       : \/dev\/sdb1\r\nPolicy           : lru\r\nMode             : Read Only\r\nBlock Size       : 4096\r\nAssociativity    : 256\r\nENV{ID_SERIAL}==\"WDC_WD1001FALS-00J7B0_WD-WMATV0098355\", ATTR{partition}==\"1\"\r\nENV{ID_SERIAL}==\"INTEL_SSDSA2CW120G3_CVPR1481061P120LGN\", ATTR{partition}==\"1\"\r\nCache created successfully\r\n<\/pre>\n<p>Now to see the block size<br \/>\nblockdev &#8211;getbsz \/dev\/sdb1 (512 was the result)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using enhanceio (the flashcache fork) First, on a debian system, you need to compile enhanceio because debian have not yet released anything for it (2015-05-13) apt-get install git make gcc pkg-config uuid openssl util-linux uuid-dev libblkid-dev python apt-get install build-essential apt-get install linux-headers-$(uname -r) Now let us download enhanceio git clone https:\/\/github.com\/stec-inc\/EnhanceIO.git cd EnhanceIO\/Driver\/enhanceio\/ make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-578","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=578"}],"version-history":[{"count":9,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":596,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/578\/revisions\/596"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}