Comments (2)
Hi, it took a while to answer this. :) My free time so far in 2019 has mainly been eaten by non-computer-related things.
Colors are fun. But, they're also a difficult thing. On the Extent level pictures documentation page you can see the colors that I did choose for the extent-level metadata pictures, where I had to choose a color for every possible value. I experimented with all kinds of things and ended up with a bunch of "soft" pastel colors to use, because just naively choosing blue! red! yellow! results in pictures that only really hurt your eyes and do not help at all.
The main purpose of the default chunk-level picture you get is to show if the physical disk space is used efficiently, or if there's a lot of unused space hidden in allocated chunks. Using colors distracts from that, so it will not be a default.
However, it's definitely a fun idea to be able to pick colors for things to e.g. like you say, be able to see stuff move around in specific scenarios. This can be converting from single to raid1, but it can also be moving data that has the same profile from disk1 to disk2 (that would probably be the next feature request from another user)...
I'd like to experiment a bit to make it possible to use colors for things. The idea I have here is to create a branch and first add the possibility to define colors for specific profiles, so that you can start playing around with it and see results and if they make you happy or not. It'll probably be a <10 line patch in the code.
from btrfs-heatmap.
In the develop branch, I added a commit "Allow setting colors for specific bg flags". Instead of always stripping off the profile bits and only searching for type color (data, metadata, mixed), it will now first try to see if there's a color defined for the full flags, so e.g. DATA|RAID1.
In the dev_extent_colors dictionary inside the program, adding a value like...
btrfs.BLOCK_GROUP_DATA | btrfs.BLOCK_GROUP_RAID1: (0x7f, 0x00, 0xff),
...will make DATA|RAID1 show up as purple, while normal 'single' DATA will still be white.
So, at least you can play around with it now and for example create a nice timelapse video of converting. I'm curious to see it. :-)
I have no idea yet if and how this will be made available without changing the script itself later.
from btrfs-heatmap.
Related Issues (12)
- Explicitly use python2 HOT 3
- "Btrfs and dirvish, a perfect match" HOT 7
- Man page missing from regular releases HOT 1
- Documentation needed? HOT 2
- Running python script as root? HOT 2
- Clarify license HOT 3
- btrfs-heatmap: search_v2(): ioctl.py:265:search_v2:PermissionError: [Errno 1] Operation not permitted HOT 6
- StopIteration when doing --sort virtual on small filesystem HOT 4
- BTRFS mounted on BTRFS shows the top most filesystem HOT 5
- ! [new branch] debian/master -> origin/debian/master (unable to update local ref)
- Feature request: Support image output to stdout HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btrfs-heatmap.