From: Robert Klemme Date: 2008-06-28T18:22:39+09:00 Subject: Re: Big empty file creation On 28.06.2008 11:10, ts wrote: > Zhukov Pavel wrote: >> I need to creat an empty file, over 10GB size. >> Which way is fastest in file creation? > > use IO#sysseek followed which a IO#seekwrite But note that this will not work on all OS in case the file must be allocated. Seeking likely creates a sparse file. Another approach is to use dd like dd if=/dev/zero of=your_file bs=1048576 count=10240 That's probably as fast as it gets if you need blocks actually allocated to the file. Kind regards robert