lkml.org 
[lkml]   [1998]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: /tmp in swap space
From
Date
Benny Amorsen <amorsen@sscnet.com> writes:

> You are making a file containing just zeroes, and ext2fs is making a
> sparse file for you. A sparse file can be written at close to main
> memory speed, I would guess. There should not be much disk activity.
> Try /dev/urandom next time...

No, ext2fs only creates holes when you seek() over the relevant
blocks, which dd doesn't do; dd-ing from /dev/zero is a fast, reliable
way to create a file taking up as many real blocks as you wish. At
any rate, /dev/urandom has its own overhead, which would complicate
the issue.

-
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.238 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site