Jump to content

Size/Size on Disk

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
14 replies to this topic

#1
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
Can somebody explain the difference?

Attached Files



#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Because limits of addressing physical locations on the hard drive, when a file is written to disk, it will occupy blocks of a certain size (such as 2Kb, 12Kb, etc). So, even though the file may be only 200 Bytes, it still occupies space for 2KB (it can't share a block with another file).
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
Thank you. That makes perfect sense.

#4
jwxie518

jwxie518

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,180 posts
Just a question, is there anyone working on sharing the block (the extra 2kb)?

#5
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts

WingedPanther said:

Because limits of addressing physical locations on the hard drive, when a file is written to disk, it will occupy blocks of a certain size (such as 2Kb, 12Kb, etc). So, even though the file may be only 200 Bytes, it still occupies space for 2KB (it can't share a block with another file).

Seems like this answers http://forum.codecal...lost-space.html too?

#6
jwxie518

jwxie518

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,180 posts
I guess so since if all these files takes an extra 2k 2kb, i guess it does add up to some 700 extra mb.

#7
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
A minor flaw I suppose - until the next genius figures out a new best way of doing it lol

#8
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
I don't think that will be possible, because of the table.. I mean if a file is split into let's say 3 blocks.. and in one block of that it will have a part of this file and another part of another file.. when it will read the data it will pickup the other part too...

What would be possible is to reduce the size of these blocks to 1bit :) no space wasted.. but I don't know the downside of that.. probably it would be too slow reason bit by bit rather than 12kb by 12kb?? Mine is 4kb.. that means less wasted space.

#9
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
maybe if somebody found another way to store stuff tho.. it might come in handy lol - I suppose your right tho less space per block would slow it down.. but if your pc is fast enough... lol

#10
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
You see.. having a fast pc does not mean anything when it comes to hdd.. because there is always a bottleneck when it comes to CPU vs HDD :/

Hmm, my external HDD is 32kb :|

#11
jwxie518

jwxie518

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,180 posts
If we reduce the amount or the size of a block, I think it does reduce the performance in theory.
Now you could choose to format your hard drive with a different block size??
Is SSD ( beside the physical mechanism), has the block size or anything like is superiorly and significantly increase the performance?

I know SSD is amazing and is most SSD are far better than all the average hard disk we use.

ps: how do you check your block size???

#12
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts

jwxie518 said:

If we reduce the amount or the size of a block, I think it does reduce the performance in theory.
Now you could choose to format your hard drive with a different block size??
Is SSD ( beside the physical mechanism), has the block size or anything like is superiorly and significantly increase the performance?

I don't think you can.. it comes from the design of the hdd i think.

Quote

ps: how do you check your block size???

Create a textfile, make one character in it, save it, press right click properties you will the the size (1byte) and size on disk