Skip to contentSkip to conversation

cache on SSD makes system unresponsive

linux-lvm matthew patton 3 participants 3 messages Oct 20, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 1 line

It is just a backup server,

Then caching is pointless. Furthermore any half-wit caching solution can detect streaming read/write and will deliberately bypass the cache. Furthermore DD has never been a useful benchmark for anything. And if you're not using 'odirect' it's even more pointless.

Quoted 1 line

Server has 2x SSD drives by 256Gb each

and for purposes of 'cache' should be individual VD and not waste capacity on RAID1. Your controller's battery-backed RAM is for write-back purposes if you want to play that game. Cache is disposable. You can yank the power cord out of the drive and the software will continue. Now if you were TIERing, that's a different topic and depends on the implementation whether or not you can lose a device. The good ones make sure the SSD can disappear and nothing bad happens.

Quoted 2 lines

10x 3Tb drives.  In addition there are two MD1200 disk arrays attached with 12x 4Tb disks each.  All

Raid5 for this size footprint is NUTs. Raid6 is the bare minimum.

#2 lore raw

matthew patton schreef op 20-10-2017 2:12:

Quoted 3 lines
Quoted 1 line

It is just a backup server,

Then caching is pointless.

That's irrelevant and not up to another person to decide.

Quoted 3 lines

Furthermore any half-wit caching solution
can detect streaming read/write and will deliberately bypass the cache.

The problem was not performance, it was stability.

Quoted 2 lines

Furthermore DD has never been a useful benchmark for anything. And if you're not using 'odirect' it's even more pointless.

Performance was not the issue, stability was.

Quoted 4 lines
Quoted 1 line

Server has 2x SSD drives by 256Gb each

and for purposes of 'cache' should be individual VD and not waste capacity on RAID1.

Is probably also going to be quite irrelevant to the problem at hand.

Quoted 4 lines
Quoted 2 lines

10x 3Tb drives.  In addition there are two MD1200 disk arrays attached with 12x 4Tb disks each.  All

Raid5 for this size footprint is NUTs. Raid6 is the bare minimum.

That's also irrelevant to the problem at hand.

#3 lore raw
Quoted 23 lines · Xen

matthew patton schreef op 20-10-2017 2:12:

Quoted 3 lines
Quoted 1 line

It is just a backup server,

Then caching is pointless.

That's irrelevant and not up to another person to decide.

Quoted 3 lines

Furthermore any half-wit caching solution
can detect streaming read/write and will deliberately bypass the cache.

The problem was not performance, it was stability.

Quoted 2 lines

Furthermore DD has never been a useful benchmark for anything. And if you're not using 'odirect' it's even more pointless.

Performance was not the issue, stability was.

Quoted 4 lines
Quoted 1 line

Server has 2x SSD drives by 256Gb each

and for purposes of 'cache' should be individual VD and not waste capacity on RAID1.

Quoted 8 lines

Is probably also going to be quite irrelevant to the problem at hand.

Quoted 4 lines
Quoted 2 lines

10x 3Tb drives.  In addition  there are two MD1200 disk arrays attached with 12x 4Tb disks each.  All

Raid5 for this size footprint is NUTs. Raid6 is the bare minimum.

That's also irrelevant to the problem at hand.

Hi Matthew,

I mostly agree with Xen about stability vs usability issues. I have a stable system and available SSD partition with unused 240Gb so decided to run tests with LVM caching using different cache modes. The _test_ results are in my posts so LVM caching has stability issues indeed regardless how I did set it up.

I do agree I would need to make a separate Virtual hardware volume for the cache and the most likely do not mirror it. However, the performance of the system is defined by a weakest point so it may be indeed the slow SSD of course. I may expect performance degradation because of that but not whole system lock down, deny of any services and follow with reboot.

Your assumptions about streaming operations of _just a backup server_ are not quite right. Bareos Directory configuration running on a separate server pushes that Storage to run multiple backups in parallel and eventually restores at the same time. Therefore even there are just few streams going in and out the RAID is really doing random read and write operations.

DD is definitely is not a good way to test any caching system, I do agree, however it is first first to try and see any good/bad/ugly results before running other tests like bonnie++. In my case, the right next command after 'lvconvert' to cache and 'pvs' to check the status, were 'dd if=some_250G_file of=/dev/null bs=8M status=process' and that was the moment everything went completely unexpected with an unplanned reboot.

About RAID5 vs RAIS6, well, as I mentioned in a separate message there is a logical volume built of 3 hardware RAID5 virtual disks so it is not 30+ disks in one RAID5 or something. Besides, that server is a front-end to LTO-6 library so even unexpected happens it would take 3-4 days to pile-up it from client hosts anyway. And I have few disks in stock so replacing and rebuilding RAID5 takes no more than 12 hours. RAID5 vs RAID6 is a matter of operational activities efficiency: watch dog system logs with Graylog2 and Dell OpenManage/MegaRAID, have spare disk and do everything on time.

Cheers,
Oleg