Skip to contentSkip to conversation

cache on SSD makes system unresponsive

linux-lvm matthew patton 2 participants 2 messages Oct 21, 2017 – Oct 24, 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

0) what is the full DD command you are issuing? (I think we have this)

1) does your DD command work when LVM is not using caching of any kind.

2) does your DD command work if using 'direct' mode

3) are you able to write smaller chunks from NON-cached LVM volume to SSD vdev? Is there an inflection point in size where it goes haywire?

4) what is your IO elevator/scheduler set to?

5) what is value of
vm.dirty_background_ratio
vm.dirty_ratio
vm.dirty_background_bytes
vm.dirty_bytes

What do you observe in /proc/vmstat during DD?

6) run DD via strace

#2 lore raw

Some of your questions are answered int thread ...

Quoted 1 line · matthew patton

0) what is the full DD command you are issuing? (I think we have this)

dd if=file_250G of=/dev/null status=progress

Quoted 2 lines

1) does your DD command work when LVM is not using caching of any kind.

Just dd had been running.

Quoted 2 lines

2) does your DD command work if using 'direct' mode

nope

Quoted 2 lines

3) are you able to write smaller chunks from NON-cached LVM volume to SSD vdev? Is there an inflection point in size where it goes haywire?

Tried for a smaller file, system became unresponsive for few minutes, LVM cache 51% however system survived with no reboot.

Quoted 2 lines

4) what is your IO elevator/scheduler set to?

deadline for all disks in LV

Quoted 6 lines

5) what is value of
vm.dirty_background_ratio
vm.dirty_ratio
vm.dirty_background_bytes
vm.dirty_bytes

vm.dirty_background_bytes = 0
vm.dirty_background_ratio = 10
vm.dirty_bytes = 0
vm.dirty_expire_centisecs = 3000
vm.dirty_ratio = 20
vm.dirty_writeback_centisecs = 500

Quoted 4 lines

What do you observe in /proc/vmstat during DD?

6) run DD via strace

Once again, system were not responding to ICMP so checking vmstat does not make any sense because of deny of service to ssh or terminal.

strace? What are you planning to see their? open() and continues read() system calls?