Block device driver in user space

From: Rolf Schäuble (mail@rschaeuble.de)
Date: Fri Mar 22 2002 - 19:44:13 EST


Hi. I'm thinking about a block device driver which is split between
kernel and user space.
But there are some things that give me a headache:

- Memory pressure:
The system runs out of free RAM. So the block buffer is freed by letting
all the devices write the data. So the userspace part is asked to
process some data. Therefore it might need more RAM, which will increase
the memory pressure. Therefore even more memory needs to be written.
Therefore the userspace part... I think you get the point.
Also, if the userspace part writes it data to the filesystem, it would
increase the memory pressure even further by causing new blocks to be
added to the cache.

Is there anything one could do to prevent this from happening (besides
from praying that there is always enough free memory)?

I'm just starting with kernel stuff, so this might as well a stupid
question. I've tried to find something in the archives, but with no
result.

Thanks for you answers.

Rolf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 23 2002 - 22:00:28 EST