News for hackers. Stuff that matters.
Re:The Bw-Tree: A B-tree for New Hardware by hyc_symas on Wednesday April 10, 2013 @11:11AM (#5525602)
Still nonsense. "AFAIK memory mapping doesn't work asynchronously" - clearly you don't know much. Reader threads in LMDB never block (except for pagefaults to pull data in, which are obviously unavoidable).
Re:The Bw-Tree: A B-tree for New Hardware by jules on Wednesday April 10, 2013 @11:31AM (#5525731)
> except for pagefaults to pull data in, which are obviously unavoidable

Umm, obviously that's what I mean. And with async IO instead of memory mapping, you could avoid that. Hence why I said memory mapping has disadvantages. Clearly the "nonsense" was invented at your end.

Re:The Bw-Tree: A B-tree for New Hardware by hyc_symas on Wednesday April 10, 2013 @05:21PM (#5528276)
Eh. You're still talking nonsense. If an app requests some data and it needs to be read in from disk, you have to wait. Async I/O or not, that app can't make any progress until its data arrives. Async I/O is only advantageous for writes.
Re:The Bw-Tree: A B-tree for New Hardware by jules on Wednesday April 10, 2013 @05:48PM (#5528436)
That's incorrect, even for reads the app can do something else at the same time while the disk read is being performed. That's what async I/O is all about.
Re:The Bw-Tree: A B-tree for New Hardware by hyc_symas on Wednesday April 10, 2013 @09:13PM (#5529309)
The app can do whatever else it wants to do that's completely unrelated to the data request. The part of the app that requested the data is stalled until the data arrives. If the data request is the only useful thing going on (e.g., a user clicked "search for Joe's phone number") then there's nothing else productive for the app to do and async I/O is irrelevant.
Re:The Bw-Tree: A B-tree for New Hardware by jules on Thursday April 11, 2013 @06:04AM (#5530947)
Yes. That last bit is very rare, especially in server applications where you have multiple clients. In any case you might want to be a little more careful before calling something that you didn't understand nonsense.
Re:The Bw-Tree: A B-tree for New Hardware by hyc_symas on Friday April 12, 2013 @04:24AM (#5537259)
In server applications you have multiple threads too. Individual clients may stall but overall a large number of clients progress.
Re:The Bw-Tree: A B-tree for New Hardware by jules on Saturday April 13, 2013 @05:36AM (#5542993)
Yes, I already pointed that out, so we're finally back to what I already originally said ;-)
Re:The Bw-Tree: A B-tree for New Hardware by hyc_symas on Tuesday April 16, 2013 @11:57PM (#5562605)
So we're in violent agreement? ;)
Re:The Bw-Tree: A B-tree for New Hardware by jules on Wednesday April 17, 2013 @08:59PM (#5568358)
I think so! :)