In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install and use enhanceio. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Enhanceio is an improved version of stec-inc based on flashcache. Tried it yesterday, the configuration is simple, easy to operate, you can add and delete enhanceio devices dynamically in the case of hard disk mounting, once created is persistent. Its performance is also very outstanding. Unfortunately, after the acquisition, the project has stopped updating and maintenance.
1. Installation
Git clone https://github.com/STEC-inc/EnhanceIOcd EnhanceIOsudo cp CLI/eio_cli / sbin/chmod 700 CLI/eio_clisudo cp. / CLI/eio_cli.8 / usr/share/man/man8/cd Driver/enhanceio/sudo apt-get install build-essential dkmsmake sudo make installcd Driversudo cp-r enhanceio/ usr/srcsudo mv / usr/src/enhanceio / usr/src/enhanceio-0.1cd / usr/src/enhanceio-0.1sudo vim dkms.confPACKAGE_VERSION= "0.1" sudo dkms add-m Enhanceio-v 0.1sudo dkms build-m enhanceio-v 0.1sudo dkms install-m enhanceio-v 0.1
two。 Create
Sudo eio_cli create-d / dev/sdb-s / dev/sdc4-m wb-c enhanceio_test │ └ │ └ cache style (wb=writeback, wt=writethrough Ro=readonly) │ └ Caching Device (SSD) └ Source Device (HDD) $cat / proc/enhanceio/my_first_enhanceio/stats
You can then view the created cache device using eio_cli info.
3. Delete
Set it to read-only and then delete it
# eio_cli edit-c my_first_enhanceio-m ro$ grep nr_dirty / proc/enhanceio/enchanceio_test/stats# eio_cli delete-c my_first_enhanceio
4. Parameter setting
You can use sysctl-w or edit / etc/sysctl.conf for configuration
Dev.enhanceio.ecache.autoclean_threshold = 1dev.enhanceio.ecache.control = 0dev.enhanceio.ecache.dirty_high_threshold = 100dev.enhanceio.ecache.dirty_low_threshold = 90dev.enhanceio.ecache.dirty_set_high_threshold = 100dev.enhanceio.ecache.dirty_set_low_threshold = 90dev.enhanceio.ecache.do_clean = 0dev.enhanceio.ecache.mem_limit_pct = 90dev.enhanceio.ecache.time_based_clean_interval = 1dev.enhanceio.ecache.zero_stats = 0
It can be adjusted as needed.
5. Test result
After preliminary testing, enhanceio's wb mode can lead to data loss in extreme cases. Flashcache's wb mode does not. So if it is to read more and write less, the wt mode of enhanceio works well. The best way to write too much is to use flashcache's wb mode.
On how to install and use enhanceio to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.