Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"10-02-12 - Small note on Buffered IO Timing"

3 Comments -

1 – 3 of 3
Blogger won3d said...

Write buffering is in the class of "try to improve average throughput at the cost of worst-case latency" strategies, like JIT compilation, garbage collection, or even "smart" mallocs.

October 2, 2012 at 2:15 PM

Comment deleted

This comment has been removed by the author.

October 2, 2012 at 2:15 PM

Blogger cbloom said...

I think it's one of those things where if you actually think about your usage, you can decide whether to do it or not for each case. Unfortunately almost noone does that, they just either turn it on all the time or off all the time.

Of course the same is true for things like mallocs; you shouldn't just have a malloc & free, you should have several that are designed for different use cases, and think about which one to use. But nobody wants that, they just want the magic solution they don't have to think about.

(eg. with something like tcmalloc/hoard you should have at least 2 variants of free :

free to the current thread's pool
free to the allocating thread's pool

because there's no way for the allocator to know the right answer, it needs the client app to tell it.

And with a flag in both cases whether frees that make a whole block free leaves that block reserved or return it to the system)

October 2, 2012 at 2:35 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.