Limiting RAMFS usage

I created a RAMFS of size 5 MB, and started filling data into that.

When it exceeds 5 MB there is no alert / error.

It is going up to the size of RAM available. So it makes the system to hang.

How to identify when the RAMFS got filled ?? I want to stop writing when the RAMFS got filled.

Thanks in Advance.

0
Syndicate content