Whenever we create a process, we are obligated to provide it with
zeroed memory for security reasons. If we could optimize by eliminating
all user processes, we would not need to bzero except for I/O blocks.
> PS: If we want to be able to write zero-filled blocks to a disk without
> bzero overhead, for example, we can reserve a small amount of physical
> pages filled with zeros at startup.
Allocate a disk block. Instantiate one inode in that block. Now
write.
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/