You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jon Haddad (Jira)" <ji...@apache.org> on 2024/11/22 21:50:00 UTC

[jira] [Created] (CASSANDRA-20107) buffer sstable writes

Jon Haddad created CASSANDRA-20107:
--------------------------------------

             Summary: buffer sstable writes
                 Key: CASSANDRA-20107
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20107
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Jon Haddad


Watching the filesystem, we do this when writing an SSTable out:

{noformat}
root@cassandra2:~# xfsslower -p $(cassandra-pid) 0
Tracing XFS operations
TIME     COMM           PID    T BYTES   OFF_KB   LAT(ms) FILENAME
20:13:26 CompactionExec 33477  W 16359   5607255     0.04 nb-1499-big-Data.db
20:13:26 CompactionExec 33477  W 1       5607271     0.00 nb-1499-big-Data.db
20:13:26 CompactionExec 33477  W 1       5607271     0.00 nb-1499-big-Data.db
20:13:26 CompactionExec 33477  W 1       5607271     0.00 nb-1499-big-Data.db
20:13:26 CompactionExec 33477  W 1       5607271     0.00 nb-1499-big-Data.db
{noformat}

This is silly.  We should be internally buffering our writes.  It's probably not a ton of overhead, but if we're going to move to writing sstables with direct IO, we have to do it anyways.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org