Sshdd
Using SSD as a fast cache in a tiered storage architecture along with HDD
Install / Use
/learn @sunil3590/SshddREADME
SSHDD
(ssshh.. we do it silently in the background)
Using SSD and HDD in a hybrid storage system
Files are moved between SSD and HDD without the user's knowledge with a goal to optimize file IO performance. The file movement is decided based on the access pattern and is dynamic in nature.
Algorithm<hr>
- Maps file ID to physical file path
- SSD is always kept full
- Keep hot files on SSD
- Makes use of least recently used and most frequently used
- File swaps between SSD and HDD are made only when the priority differ by a threshold
Testing<hr>
File access pattern data set : http://ita.ee.lbl.gov/html/contrib/WorldCup.html. All files in the access pattern data set are generated and the access pattern is simulated to study the performance gain in terms of time taken to read all files in the access pattern.
Dependencies<hr>
- libpqueue
git clone cd https://github.com/vy/libpqueue.git
cd libpqueue/src
gcc -c pqueue.c -o pqueue.o
ar rcs libpqueue.a pqueue.o
To run demo<hr>
Requirements
- Ubuntu 14.04 machine
- USB pendrive
Important
To increase the number of messages that can be held in message queue
sudo sh -c 'echo 8000 > /proc/sys/fs/mqueue/msg_max'
Build
sh build.sh
Pendrive setup and config
- Create a folder in pendrive, name of your choice
- Open run.sh and change path of USB folder
Run
sh run.sh
This will run the 4 test cases as illustarted in the paper / presentation Time taken for each of the 4 tests can be verified from console prints
Results<hr>
Increased the read throughput by approximately 100% when compared to a static allocation strategy
TODO<hr>
- Add locking mechanism while modifying metadata
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
