Announcement

Collapse
No announcement yet.

On-Disk Shader Cache Revised For Mesa, Close To Landing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Originally posted by davidbepo View Post

    i know that and yes i've set journald to not save data, but also if the shaders have to be rebuilt daily the wins are much less
    (some of the shader is saved even if rebuilt AFAIK)
    If you're worried about your SSD maybe you shouldn't update Mesa on a daily basis... ;-)

    Comment


    • #12
      True story. By the way, I never managed to destroy a single SSD at the time writing. Even though I bought some of them used with "only" having 90 % of the write cycles left. Now that one, after a few years, still has > 60 %. For that reason I'd say HDDs will have bad sectors much more earlier than a SSD will fault while writing.

      Comment


      • #13
        Originally posted by davidbepo View Post
        constant writes to ssd is not a good idea
        you can daily write to ssd your shader cache for thousands of years. actually the only point of using ssd is on high-traffic data. otherwise you don't need ssd speed and can use cheaper hdd

        Comment


        • #14
          Originally posted by davidbepo View Post
          i know that and yes i've set journald to not save data, but also if the shaders have to be rebuilt daily the wins are much less
          (some of the shader is saved even if rebuilt AFAIK)
          lol, you could put your ssd on shelf, it will be even safer then. or maybe even leave it in shop and save money
          Last edited by pal666; 24 January 2017, 08:16 AM.

          Comment


          • #15
            Originally posted by davidbepo View Post

            constant writes to ssd is not a good idea
            the package is updated daily
            It seems that age is the factor not the number of writes (block erasures)
            Using data from millions of drive days in Google datacenters, a new paper offers production lifecycle data on SSD reliability. Surprise! SSDs fail differently than disks - and in a dangerous way. Here's what you need to know.

            Comment


            • #16
              Originally posted by pal666 View Post
              you can daily write to ssd your shader cache for thousands of years. actually the only point of using ssd is on high-traffic data. otherwise you don't need ssd speed and can use cheaper hdd
              The biggest speed advantage of SSD is "seek" and "read" not necessarily "write"! But it seems that writes are not the cause of wear either.

              Comment


              • #17
                this thread has gone off the rails

                to recap what i said so no one confuses
                i wont enable it because
                1- it wil cause writes to the ssd (i know it wont wear before i buy another or probably never)
                2- it wont improve load times much because of the daily recompiles due to mesa git

                also thank to the people for the discussion

                Comment


                • #18
                  Originally posted by Falcon1 View Post
                  The biggest speed advantage of SSD is "seek" and "read" not necessarily "write"! But it seems that writes are not the cause of wear either.
                  writes are also faster and if you write your cache often, then you will read it often too

                  Comment


                  • #19
                    Originally posted by davidbepo View Post
                    constant writes to ssd is not a good idea
                    the package is updated daily
                    Apart from the fact, that the shader cache will cause only a small percentage of writes of the mesa git rebuilds, I find it utterly fascinating, that people actually do worry about writing to their SSDs.

                    1 Raw_Read_Error_Rate 0x000f 117 110 050 Pre-fail Always - 0/160911102
                    5 Retired_Block_Count 0x0033 100 100 003 Pre-fail Always - 0
                    9 Power_On_Hours_and_Msec 0x0032 100 100 000 Old_age Always - 49105h+16m+3
                    5.920s
                    12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 1004
                    171 Program_Fail_Count 0x0032 000 000 000 Old_age Always - 0
                    172 Erase_Fail_Count 0x0032 000 000 000 Old_age Always - 0
                    174 Unexpect_Power_Loss_Ct 0x0030 000 000 000 Old_age Offline - 113
                    177 Wear_Range_Delta 0x0000 000 000 000 Old_age Offline - 1
                    181 Program_Fail_Count 0x0032 000 000 000 Old_age Always - 0
                    182 Erase_Fail_Count 0x0032 000 000 000 Old_age Always - 0
                    187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
                    195 ECC_Uncorr_Error_Count 0x001c 117 110 000 Old_age Offline - 0/160911102
                    196 Reallocated_Event_Count 0x0033 100 100 000 Pre-fail Always - 0
                    241 Lifetime_Writes_GiB 0x0032 000 000 000 Old_age Always - 22592
                    242 Lifetime_Reads_GiB 0x0032 000 000 000 Old_age Always - 30208

                    Comment


                    • #20
                      Originally posted by atomsymbol

                      About point 2: It's the reason why asked tarceri whether there is a plan to checksum (such as SHA256) the C/C++ source code compiling the shader. That would lower (but not completely remove) the probability of recompiling shaders for people using mesa-git and for updates like mesa-17.x to mesa-17.(x+1).

                      A viable approach to compute the checksum would be to utilize a source code parser to process the hand-written Mesa C/C++ code.
                      another (and easier) way could be having a shader version variable that only gets bumped when something involving shaders changes

                      Comment

                      Working...
                      X