-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Put in a warning about dedup requiring lots and lots of memory. #2754
Conversation
96a61de
to
bbeeda6
Compare
While you’re there you might want to also point out the impact of large numbers of non-unique blocks on resilver times. |
I've revised it twice, and decided in the end to remove any speculation and settle with "don't use unless you know what you're doing". This should caution users and make them investigate the issue further and not just "enable it because it sounds cool/nice". |
That's definitely a scary warning. Dedup might cause you significant performance problems but it shouldn't ever result in pool loss. Are you thinking about cases where it takes many days to import the pool due to the pool performance? |
It wasn't lost in the sense that it could never, ever be imported again. It was "lost" in the able/could afford to buy)...Ehhhhm - The battle cry of the cronical masturbater.
|
I have seen reports of problems importing dedup'ed pools due to memory exhaustion. I've also seen people reporting horrible performance problems. But at least in my mind those are both very different things than pool loss. They're bugs which need to be reported so we can address them. I have no objection what so ever to warning people about enabling deduplication. But let's update the warning in the man page to accurately reflect the known risks. |
Fair enough. How about this:
|
I can get on board with something like that. |
How about something like this?
|
Don't feel that it's strong enough... I think users needs to get a good kick in the teeth. If they survive that, then by all means enable dedup... :) |
Maybe |
Agreed. If I got bit by this and had to choose between waiting for an |
OK, can someone please suggest some stern but polite text which explains this. |
@kpande the fact that we don't know is clearly part of the problem... |
Anything not polite with my last attempt (with some addition of performance issues)?
|
Minor tweak to your text, FransUrbo: WARNING: DO NOT ENABLE DEDUPLICATION UNLESS YOU NEED IT AND KNOW EXACTLY WHAT YOU ARE DOING! |
|
Minifying:
Perhaps we can also alter the man page for zfs create so that it adds this text to the dedup options pane:
|
Thanx @Sachiru for your comments. I think your last one was a little repetitive and "wordy", but over all very good. I've taken a lot of that and pushed a new version. Please tell me what you think. |
Thanx to Sachiru for comments and suggestions.
I like this a lot better. I should be able to get it merged today unless someone wants to suggest additional updates. |
Figues might differ and depend on usage and data stored, but a firm
warning is required - people are trying to use this on machines
with 8GB or even 4GB memory!