Why two readings on folder size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • theking
    Nice Kitty
    • Sep 2002
    • 21053

    #1

    Why two readings on folder size

    Size: 346 MB (363,177,253 bytes)

    Size on disk: 848 MB (889,651,200 bytes)
    When you're running down my country hoss...you're walking on the fighting side of me!

    FOR THE LYING LOWLIFE POSTING AS PATHFINDER...http://gfy.com/fucking-around-and-pr...athfinder.html
  • NetRodent
    Confirmed User
    • Jan 2002
    • 3985

    #2
    Does the folder contain lots of little files?
    "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
    --H.L. Mencken

    Comment

    • theking
      Nice Kitty
      • Sep 2002
      • 21053

      #3
      Originally posted by NetRodent
      Does the folder contain lots of little files?
      Contains: 20,470 files, 1,406 folders
      When you're running down my country hoss...you're walking on the fighting side of me!

      FOR THE LYING LOWLIFE POSTING AS PATHFINDER...http://gfy.com/fucking-around-and-pr...athfinder.html

      Comment

      • NetRodent
        Confirmed User
        • Jan 2002
        • 3985

        #4
        There's your answer. You've got a lot of slack space. Disk space isn't allocated down the bit, its allocated in clusters (often between 1k to 32k in size). That means that even if you have a file that is smaller than your cluster size, the remainder of the cluster is unusable. For large files this isn't a problem as they'll fill several clusters competely and the last cluster partially. For small files, this can lead to very inefficient use of the disk.

        If this is a problem, you might want to consider tar'ing/zipping the files or changing your file system around to use smaller clusters.
        "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
        --H.L. Mencken

        Comment

        • theking
          Nice Kitty
          • Sep 2002
          • 21053

          #5
          Originally posted by NetRodent
          There's your answer. You've got a lot of slack space. Disk space isn't allocated down the bit, its allocated in clusters (often between 1k to 32k in size). That means that even if you have a file that is smaller than your cluster size, the remainder of the cluster is unusable. For large files this isn't a problem as they'll fill several clusters competely and the last cluster partially. For small files, this can lead to very inefficient use of the disk.

          If this is a problem, you might want to consider tar'ing/zipping the files or changing your file system around to use smaller clusters.
          I assumed that was the reason but did not know for sure.

          Another question when you upload to a server which would apply to allocated disk storage.

          Size: 346 or
          Size on disk: 848
          When you're running down my country hoss...you're walking on the fighting side of me!

          FOR THE LYING LOWLIFE POSTING AS PATHFINDER...http://gfy.com/fucking-around-and-pr...athfinder.html

          Comment

          • theking
            Nice Kitty
            • Sep 2002
            • 21053

            #6
            Any answers to my last question?
            When you're running down my country hoss...you're walking on the fighting side of me!

            FOR THE LYING LOWLIFE POSTING AS PATHFINDER...http://gfy.com/fucking-around-and-pr...athfinder.html

            Comment

            • X37375787

              #7
              it depends on the default allocation size. NTFS for example is 8KB, so even if you create a 1 Byte file, it will fill up 8KB. I dunno what *nix OSs have though.

              Comment

              • mule
                Confirmed User
                • Jan 2002
                • 6085

                #8
                Originally posted by theking
                Any answers to my last question?
                LOL, for a retired adult webmaster you sure know a lot about computers
                Converting like a mofo

                Comment

                Working...