public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /dev/zero
@ 2002-04-12  6:46 blesson paul
  2002-04-12  7:19 ` /dev/zero Frank Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: blesson paul @ 2002-04-12  6:46 UTC (permalink / raw)
  To: linux-kernel

Hi all
               I am newbie to linux kernel. What is the use of /dev/zero. 
Why it is created and how to use it
regards
Blesson Paul



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: /dev/zero
@ 2002-04-12 23:02 Samuel Maftoul
  0 siblings, 0 replies; 11+ messages in thread
From: Samuel Maftoul @ 2002-04-12 23:02 UTC (permalink / raw)
  To: lkml

On Fri, Apr 12, 2002 at 05:12:06PM +0200, Guillaume Gimenez wrote:
> Samuel Maftoul a écrit:
>     Samuel> It's just zeroes, so it allows you to test raw write speed on any
>     Samuel> device:
>     Samuel> dd if=/dev/zero of=/dev/hda to test your performances of hda ...
>     Samuel> normally if I get it well, /dev/zero can't be you're bottleneck.
>     Samuel>         Sam
oops really sorry, It will really earase your disk.
This morning I was really sleepy and wanted to write something other:
time dd if=/dev/zero of=/mnt/ bs=1024 count=100000 
and so you can know what's the speed not of your ide or scsi (or
something other) which is given by hdparm but it will give you the speed
through the used filesystem.
Sorry about that.
        Sam

> 
> Just to save Samuel's soul ;-)
> the dd command supplied above will erase your primary hard drive
> 
> To see hard drive performances, hdparm -tT /dev/hda is better.
> 
> PS: Pas sympa Samuel
> 
> -- 
> Guillaume Gimenez

^ permalink raw reply	[flat|nested] 11+ messages in thread
* /dev/zero
@ 2002-04-19  8:33 blesson paul
  2002-04-19 10:22 ` /dev/zero Frank Schaefer
  2002-04-23 22:46 ` /dev/zero Bill Davidsen
  0 siblings, 2 replies; 11+ messages in thread
From: blesson paul @ 2002-04-19  8:33 UTC (permalink / raw)
  To: linux-kernel

Hi
		I need some more information about /dev/zero. I need to replace the device 
driver of /dev/zero(I do not know whether I can name the program controlling 
the /dev/zero as device driver). How to do the job. If I cannot replace the 
device driver of /dev/zero, how to create a new charecter device and load my 
device driver.

regards
Blesson Paul




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: /dev/zero
@ 2002-04-19 16:35 Torrey Hoffman
  0 siblings, 0 replies; 11+ messages in thread
From: Torrey Hoffman @ 2002-04-19 16:35 UTC (permalink / raw)
  To: blesson paul, linux-kernel

blesson paul wrote:
> 		I need some more information about /dev/zero. I 
> need to replace the device 
> driver of /dev/zero(I do not know whether I can name the 
> program controlling 
> the /dev/zero as device driver). How to do the job. 
...

You really ought to get yourself a copy of "Linux Device
Drivers 2nd Edition" by Rubini and Corbet.  

It contains good explanations and lots of examples.

http://www.oreilly.com/catalog/linuxdrive2/

Lucky for you, there is a free online copy:

http://www.xml.com/ldd/chapter/book/index.html

but you probably want to get the paper version too, it is
more convenient in many situations.

Good luck.

Torrey Hoffman
thoffman@arnor.net
torrey.hoffman@myrio.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-04-23 22:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-12  6:46 /dev/zero blesson paul
2002-04-12  7:19 ` /dev/zero Frank Schaefer
2002-04-12  7:26   ` /dev/zero Rowan Ingvar Wilson
2002-04-12  8:08     ` /dev/zero Samuel Maftoul
2002-04-12 15:12       ` /dev/zero Guillaume Gimenez
  -- strict thread matches above, loose matches on Subject: below --
2002-04-12 23:02 /dev/zero Samuel Maftoul
2002-04-19  8:33 /dev/zero blesson paul
2002-04-19 10:22 ` /dev/zero Frank Schaefer
2002-04-20  0:50   ` /dev/zero willam
2002-04-23 22:46 ` /dev/zero Bill Davidsen
2002-04-19 16:35 /dev/zero Torrey Hoffman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox