lkml.org 
[lkml]   [1998]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /tmp in swap space
Larry McVoy wrote:
> ... (and EXT2FS will approximate TMPFS for smaller files which fit in
> the cache).

If I do the following:

open ("/tmp/file", O_CREAT|O_TRUNC|O_WR)
write (....) /* Small enough to fit in cache. */
close ()
/* Do some work, file still stays in cache. */
unlink ("/tmp/file")

Is ext2 clever enough to avoid writing data blocks for the deleted file
to the disk? This has always struck me as the reason why a Linux tmpfs
would be useful.

I could ask is ext2 clever enough to avoid writing _anything_ in this
case, but I think that's clearly asking too much.

Would a well implemented tmpfs perhaps make `gcc' faster than
`gcc -pipe'?

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.023 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site