[ https://issues.apache.org/jira/browse/CASSANDRA-3930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406655#comment-13406655 ]
Pavel Yaskevich edited comment on CASSANDRA-3930 at 7/4/12 6:21 PM: -------------------------------------------------------------------- How do you mean active? mmap uses the same page cache as normal access does so the same page out applies, I don't see how we dould be able to avoid using buffer for CLS if we to use SW. Edit: forgot to mention, we should probably look into "madvice" direction if yoi want to control over CLS mappings, instead of trying to use SW was (Author: xedin): How do you mean active? mmap uses the same page cache as normal access does so the same page out applies, I don't see how we dould be able to avoid using buffer for CLS if we to use SW. > CommitLogSegment uses RandomAccessFile which doesnt have fadvice > ---------------------------------------------------------------- > > Key: CASSANDRA-3930 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3930 > Project: Cassandra > Issue Type: Improvement > Affects Versions: 1.0.7 > Reporter: Vijay > Assignee: Vijay > Priority: Minor > Fix For: 1.1.3 > > > Wondering if we even need MMap file in this case as it is always sequential. > If yes, we need it we might want to replace > logFileAccessor = new RandomAccessFile(logFile, "rw"); > to > logFileAccessor = SequentialWriter.open(logFile, true); > in CommitLogSegment -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira