Better HN
topnewbestaskshowjobs
Log inSign up

prakashsurya

125 karma · joined Feb 24, 2014 (12y ago) · 16 submissions

OpenZFS Developer at Delphix
Submissions

1.

OpenZFS: Notes on ZIL Transactions(prakashsurya.com ↗)

2 points · by prakashsurya · 9y ago · discuss

2.

OpenZFS: Artificial Disk Latency Using Zinject(blog.delphix.com ↗)

1 points · by prakashsurya · 10y ago · discuss

comment 11y ago · link · parent

Well, if the exact same semantics were required (i.e. always evict the oldest buffer), then it's really O(M*n) where M is the number of bytes to evict, and n being the number of sublists; each sublist would have to be checked for each buffer that evicted. But, I agree, if that was the only concern then the extra comparisons _probably_ wouldn't be enough to be concerned about.

The bigger issue is how to lock the sublists. It seems heavy handed to lock all sublists, find the oldest buffer, evict it, and then unlock all sublists. But if each is locked, checked, then unlocked; each sublists' oldest buffer can change while the eviction thread is still iterating the sublists to find the oldest buffer.

So, while the current solution is not very elegant, it is simple, requires minimal locking, and appears to work well enough.

comment 11y ago · link · parent

Currently, the number of sublists created is equal to the number of cores on the system.

While it'd be fairly trivial to extend the code to make it easy for an admin to define the number of sublists, I don't have any reason to believe that'd be a useful knob to export.

5.

OpenZFS: Reducing ARC Lock Contention(blog.delphix.com ↗)

65 points · by prakashsurya · 11y ago · 7 comments

6.

OpenZFS Device Removal(blog.delphix.com ↗)

60 points · by prakashsurya · 11y ago · 6 comments

comment 11y ago · link · parent

Could not have said it better myself. It's disappointing to see a post with such unfounded nonsense rated so high on HN.

comment 12y ago · link · parent

yup, that's why I added "by default". a user won't get that functionality without explicitly asking for it.

comment 12y ago · link · parent

Error detection can always be used, but error correction may or may not be available (it depends on the type of block). Metadata blocks are redundant even on a single drive pool; so if you just have a partial failure (e.g. overwrite a metadata block) it might be able to correct the block using another redundant copy on the same drive. Data blocks will require a redundant pool configuration, though, as these are not store redundantly by default (e.g. multiple drives in a raidz or mirror).

comment 12y ago · link · parent

No problem. It's really a shame to have such a high bar for using dedup. It either fits a given workload extremely well, or can be extremely detrimental.

There's been talk in the developer community about ways to address the usability of dedup, but so far nothing has gone further than small prototypes.

comment 12y ago · link · parent

There is work in progress to add the ability to remove a device from a pool. So, hopefully in the not too distant future, that work will land in illumos and migrate to all the downstream implementations (e.g. linux, mac, and freebsd).

comment 12y ago · link · parent

No, that's flat out not true.

I've seen that metric thrown around when talking about the "dedup" feature of ZFS, but honestly, don't use dedup unless you know what you're doing. It's way to easy for things to go wrong otherwise.

comment 12y ago · link · parent

Yes, I run ZFS on Linux on my single drive laptop currently.

ZFS doesn't _need_ multiple drives to work well, but it is capable of using them if they're available. One can also run a HW raid solution underneath ZFS, where the RAID engine just presents ZFS with a small number of LUNs. It's all up to the admin; and what sort of performance, redundancy, and maintenance guarantees are required.

comment 12y ago · link · parent

FWIW, if there's anybody interested in learning about the ZFS code base, we'd love help porting patches from ZoL into Illumos and vice versa. That's a good way to get a new developer integrated with the code and process surrounding each platform.

comment 12y ago · link · parent

I can't recall the exact detail from memory, but I believe #1 has to do with the fact that zfs creates/clones/snapshots/etc are done in "syncing" context. Thus, each command has to wait for a full pool sync to complete, limiting the rate at which these can be done.

This is a known problem, and likely to be fixed in the not too distant future.

comment 12y ago · link · parent

Is dtrace available on Linux? I know there's been work towards that goal, but I haven't payed much attention to it recently.