Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Computers have no sense of time

created by The Cow

(idea) by derobert (3.4 y) (print)   ?   (I like it!) Mon Apr 22 2002 at 1:58:50

Too many programs make a bad assumption about how long a disk operation will take. That assumption is

The amount of time left in an operation is equal to the total remaining bytes of operation left divided by the dividend of the total bytes completed and the amount of time spent on completing it.
The assumption is, in many cases, plain wrong.

Generally, copying n one byte files takes far longer than copying one n-byte file. Disk seeks are costly. Often file creation and finding is slow as well. For example, finding and creating files over WebDAV is much worse than read or write streaming.

To accurately measure the time to complete an operation, you must first figure how much overhead there is per file. Then add in the overhead in the calculation. This still isn't perfect, but it's much closer than most programs use.

Many disks don't run at the same speed at the inner and outer track. Disks have multiple platters and heads, and can sometimes use many at a time. Seek times vary based on current head position. The only thing about all predictions of the future is that they are all wrong, etc.


printable version
chaos

The far-too-modern computer labs in schools Halting problem God is a teen-age hacker black and white
Bug ba-design, zayin ba-debug Is your teenager concerned about inequality and pollution? Call a drug counselor. Microsoft time Progress bar
a sense of time moving slowly The more laws there are, the more crime there is WebDAV I can often think myself right into the nuthouse
I really really scared myself this evening Diskless computer magnetic guidance systems Treatise on Time (You Fucko)
Google end-stopped I decided to kill myself I can't stop torturing myself
I hate myself and want to die cutting a Mobius strip cutting If you're not going to worship me, get the fuck out of my bed
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
What you are reading:
Whither the Phoenix?
Sensei, we've got another lesbian stuck in the goddamn shredder
If a black hole were created on Earth
Muhammad
Fuel rationing
Scotch egg
Absinthe
But I don't want to be Princess Leia!
Creole / Cajun Cuisine
December 6, 2006
Manufacturing Consent
Polaris
market fascism
New Writeups
Tom Rook
Talk is cheap(poetry)
shaogo
Adelle Davis(person)
Aerobe
race car g sfjsgsd(poetry)
Binah
Dream Log: July 5, 2008(dream)
StrawberryFrog
Forgotten things in space(idea)
antigravpussy
velvet revolution fairy tale(idea)
Heitah
Nerve agent VX(thing)
Pavlovna
shite(idea)
wonton
Days and nights come together in a slow falling down(fiction)
Pavlovna
wee(idea)
katherine
root log: July 2008(log)
Madara
There’s nothing like a trail of blood to find your way back home(fiction)
Heitah
After sneeze(idea)
froggy7384
Why we smoke(personal)
SubSane
Loneliness is a Warm Tuna Melt on a Cold Summer Night(person)
Everything 2 is brought to you by the letter C and The Everything Development Company