[mythtv-users] ramfs for mysql

Dan Wilga mythtv-users2 at dwilga-linux1.amherst.edu
Thu Dec 22 13:40:12 UTC 2011


On 12/22/11 4:54 AM, Ian Clark wrote:
>> Using ramfs or tmpfs,
>> you have to worry about data loss during an unexpected reboot, unless
>> you also do MySQL replication to non-volatile storage.
>>      
> ...which means you'll probably also be writing to a binary log file on
> non volotile storage, which probably negates a lot of the advantages?
>    
Good point, Ian. Though I think, in this case, that it would be fine to 
have the binlog file reside in RAM. With the replication slave on the 
same machine or another very close by, you won't ever have enough lag 
for there to be an accumulation of unread bin log data.

I was also looking at drbd: http://www.drbd.org/. You could use this to 
automatically mirror a RAM-based filesystem to something non-volatile, 
even on the same machine. Since this is at the kernel level, it will 
handle the cacheing and queueing necessary to keep things running 
quickly for the ramdisk side.

-- 
Dan Wilga                                                        "Ook."



More information about the mythtv-users mailing list