lkml.org 
[lkml]   [1998]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Wanted: Secure-delete utility for Linux
Michael Shields wrote:
>
> In article <199812230309.AAA05174@sleipnir.valparaiso.cl>,
> Horst von Brand <vonbrand@sleipnir.valparaiso.cl> wrote:
> > There are faster methods, but I'd guess that the I/O time swamps everything
> > else.
>
> Don't guess; measure.
>
> $ time ./a.out | dd bs=1048576 count=10000 of=/dev/null
> 0+10000 records in
> 0+10000 records out
> Broken pipe
>
> real 0m4.010s
> user 0m3.560s
> sys 0m0.240s
>
> Your program generates roughly 2.5 GB/s on an unloaded Celeron 333.
> (gcc 2.7.2.3, -O2) This exceeds the RAM bandwidth.
>

Don't messure; guess :)

The results can't be worse.

2.5 GB/s, that is 8 Bytes/clockcycle or 2 loops/clockcycle, each loop
consisting of calculation and fwrite-syscall.
Processors can do a _lot_ in one clockcycle nowadays:)

Thomas

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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