I often write small programs of sizes
< 512 bytes, which is my disk's sector size. However, the
du command always shows these files' disk usage at
4K. My memory page size is
So I was wondering if the disk usage of a file is in terms of page sizes in stead of sector sizes and if so, is it because files are memory mapped when they are opened?
Or does this depend on the file system?