Welcome! Log In Create A New Profile

Advanced

Re: Zero/random file module

Maxim Dounin
September 11, 2017 11:36AM
Hello!

On Mon, Sep 11, 2017 at 04:47:34PM +0200, Grzegorz Kulewski wrote:

> In my company we often want to monitor transfer speeds. To do
> that we upload 1M-10G zero/random file to a web server and then
> we set up some monitoring to time the download. Or we do the
> download by hand during troubleshooting sessions.
>
> The downside of this is that we need to upload and keep those
> files on disk and sometimes disk is a very limited resource.

Just a side note: on most operating systems you can create sparse
files, which do not occupy disk space. For example:

$ truncate -s 10g foo
$ ls -lah foo
-rw-r--r-- 1 mdounin mdounin 10G Sep 11 18:08 foo
$ du -sh foo
96K foo

This allows to create huge zero-filled files even in very
constrained environments.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Zero/random file module

Grzegorz Kulewski September 11, 2017 10:48AM

Re: Zero/random file module

Maxim Dounin September 11, 2017 11:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready