You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Coli (JIRA)" <ji...@apache.org> on 2010/10/13 20:59:33 UTC

[jira] Commented: (CASSANDRA-1470) use direct io for compaction

    [ https://issues.apache.org/jira/browse/CASSANDRA-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920714#action_12920714 ] 

Robert Coli commented on CASSANDRA-1470:
----------------------------------------

Was looking over this patch and noticed it only does O_DIRECT on SSTable writes. The commit log contains 100% of writes, but only the header is ever read except in the relatively rare replay case. It seems like it would be worth doing these writes as O_DIRECT to avoid polluting the page cache with them, spoke with Goffinet and he agreed. I looked at the code and it appears to be a two line patch, which I've attached.

> use direct io for compaction
> ----------------------------
>
>                 Key: CASSANDRA-1470
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1470
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>             Fix For: 0.6.7, 0.7.1
>
>         Attachments: 1470-v2.txt, 1470.txt, use.DirectIORandomAccessFile.for.commitlog.against.1022235.patch
>
>
> When compaction scans through a group of sstables, it forces the data in the os buffer cache being used for hot reads, which can have a dramatic negative effect on performance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.