On the machine:
- RAID-1 of three HDDs
- 12 GB RAM
- Apache Cassandra instance with 25 GB of data
- ejabberd instance
The IO is created by Cassandra, which reads many random data pages and occasionally writes sequential 100-200 Mb chunks of data. Also some IO is created by swapping ejabberd memory in and out.
So most write load is created by swapping out random ejabberd memory pages. And we know that RAID-1 is N times better on read than on write. Decreasing swappiness parameter from 60 to 20 I moved IO load from write to read. There left almost no random spaw writes.
The IO load has really decreased. Not a huge optimization, but worth doing.
Комментариев нет:
Отправить комментарий