Skip to contentSkip to conversation

ext3 file system

DISCUSSION jshankar 3 participants 3 messages Dec 18, 2003 VFS

lore
Share & tools
lore

jshankar

author
#0 lore raw

Hello Hans,

Quoted 4 lines

Filesystems don't usually wait on the IO to complete before submitting more IO in response to the next write() syscall. They can do this by batching a whole bunch of operations into one committed transaction.

Is there a timeout mechanism for batching operations. What if certain operation
is done after the batch operation is executed. Does it mean that the new operation has to wait.

Thanks
Jay

Quoted 13 lines

===== Original Message From Hans Reiser <[email protected]> =====

Quoted 10 lines · jshankar

Hello,

Please provide some more insight.

Suppose a filesystem issues a write command to the disk with around 10 4K Blocks to be written. SCSI device point of view i don't get what is the parallel I/O.
It has only 1 write command. If some other sends a write request it needs to be queued. But the next question arises how the write data would be handled. Does it mean the SCSI does not give a response for the block of data

written.

Quoted 15 lines
Quoted 15 lines

In otherwords does it mean that the response would be given after all the block of data is written for a single write request.

Thanks
Jay

Quoted 4 lines

===== Original Message From Mike Fedyk <[email protected]> ===== On Wed, Dec 17, 2003 at 05:25:49PM -0500, Richard B. Johnson wrote:

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

to the physical media. There are special file-systems (journaling) that guarantee that something, enough to recover the data, is written at periodic intervals.

Most journaling filesystems make guarantees on the filesystem meta-data,

but

Quoted 31 lines
Quoted 11 lines
Quoted 10 lines

not on the data. Some like ext3, and reiserfs (with suse's journaling patch) can journal the data, or order things so that the data is written before any pointers (ie meta-data) make it to the disk so it will be harder to loose data.
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 9 lines

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

In reiser4 we do this more carefully than other filesystems such as reiserfs v3, and as a result every fs operation is fully atomic.

--
Hans

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 11 lines · jshankar

Hello Hans,

Quoted 4 lines

Filesystems don't usually wait on the IO to complete before submitting more IO in response to the next write() syscall. They can do this by batching a whole bunch of operations into one committed transaction.

Is there a timeout mechanism for batching operations. What if certain operation
is done after the batch operation is executed. Does it mean that the new operation has to wait.

You don't have to wait unless you run out of available non-dirty memory, or issue a call to sync to the disks.

#2 lore raw
Quoted 7 lines · Mike Fedyk
Quoted 4 lines · jshankar

Hello Hans,

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

Filesystems don't usually wait on the IO to complete before submitting more IO in response to the next write() syscall. They can do this by batching a whole bunch of operations into one committed transaction.

Is there a timeout mechanism for batching operations.

At some point due to its age or size you decide the batch needs to commit.

Quoted 11 lines
Quoted 4 lines

What if certain operation
is done after the batch operation is executed. Does it mean that the new operation has to wait.

You don't have to wait unless you run out of available non-dirty memory, or issue a call to sync to the disks.

Signature · 1 line
Hans