Skip to contentSkip to conversation

MTD for buffered IO

DISCUSSION NAK Портон Виктор Львович 2 participants 2 messages Feb 13, 2006 – Feb 17, 2006 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 9 lines
Quoted 2 lines · Victor Porton,,,

I suggest to add kernel configuration/option to allow to use an MTD device as a continuation of I/O buffers (for HDD).

Why do you want to be limited to MTD devices?
What about creating a device-mapper target using JBD instead?

Good idea, which probably already works with current Linux with ext3. But we should be not limited to JDB systems. Your idea works only with JDB, so your idea (despite of being a good idea) is a hack.

Quoted 5 lines
Quoted 1 line

One way to implement it would be to add the option for a swap

partition/file

Quoted 1 line

to allow to use this swap partition/file as I/O buffer for other device.

-EBADIDEA. You'd certainly lose data on power failures.

How it is worse than to lose data on power failures with the standard Linux memory I/O cache?

Moreover so we can lose LESS, as Flash memory will preserve swap content unlike RAM.

Quoted 4 lines
Signature · 2 lines
Ich danke GMX dafьr, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lьgen zu sabotieren.
Signature · 1 line
Victor Porton ([email protected])
#3 lore raw
Quoted 11 lines · ?????? ?????? ???????
Quoted 9 lines
Quoted 2 lines · Victor Porton,,,

I suggest to add kernel configuration/option to allow to use an MTD device as a continuation of I/O buffers (for HDD).

Why do you want to be limited to MTD devices?
What about creating a device-mapper target using JBD instead?

Good idea, which probably already works with current Linux with ext3. But we should be not limited to JDB systems. Your idea works only with JDB, so your idea (despite of being a good idea) is a hack.

NACK, my idea is "porting" the JBD function from ext3 to dm.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

One way to implement it would be to add the option for a swap

partition/file

Quoted 1 line

to allow to use this swap partition/file as I/O buffer for other device.

-EBADIDEA. You'd certainly lose data on power failures.

How it is worse than to lose data on power failures with the standard Linux memory I/O cache?

It will increase the cache and thereby the amount of in-flight data.

Quoted 1 line

Moreover so we can lose LESS, as Flash memory will preserve swap content unlike RAM.

I didn't asume that you suggest the cache to be preserved, since swap does not provide the facility. JBD obviously does have this feature, therefore my suggestion.