The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    When is SSD TRIM active?

    Discussion in 'Hardware Components and Aftermarket Upgrades' started by HTWingNut, Feb 24, 2011.

  1. HTWingNut

    HTWingNut Potato

    Reputations:
    21,580
    Messages:
    35,370
    Likes Received:
    9,877
    Trophy Points:
    931
    When is TRIM active? I mean this happens when the computer "idles" but what is meant by "idle". I asked at the Corsair forums regarding the Nova that's in my netbook and they said that TRIM occurs only when powered on but logged off.

    I've never seen that documented anywhere. I'm also curious when the drive garbage collection and wear leveling is active. I know this happens when the drive is "idle" as well, but again, what is meant by "idle"?
     
  2. chimpanzee

    chimpanzee Notebook Virtuoso

    Reputations:
    683
    Messages:
    2,561
    Likes Received:
    0
    Trophy Points:
    55
    TRIM is an ATA info command sent to the drive. It is 'information' that the controller can use. It has nothing to do with the actual moving, rearrangement, erase or anything like that. It helps the controller to update its 'free map'.
     
  3. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
  4. HTWingNut

    HTWingNut Potato

    Reputations:
    21,580
    Messages:
    35,370
    Likes Received:
    9,877
    Trophy Points:
    931
    I know that, but when does it occur, and more importantly, when does GC / wear leveling take place?
     
  5. davepermen

    davepermen Notebook Nobel Laureate

    Reputations:
    2,972
    Messages:
    7,788
    Likes Received:
    0
    Trophy Points:
    205
    the information gets sent when ever something changes in the file system.

    the ssd processes that information immediately, but can schedule flash cleanups how ever it wants. afaik the intels respond about instantly to it. but i bet they buffer some cleanup jobs.
     
  6. chimpanzee

    chimpanzee Notebook Virtuoso

    Reputations:
    683
    Messages:
    2,561
    Likes Received:
    0
    Trophy Points:
    55
    That is a controller policy thing. One way is that if a TRIM results in a whole erasable block being free, it would erase it immediately as well(so the next write may be able to use it). Another way is just let a timer based routine to do it in batch manner. There are so many way to implement the GC/wear leveling. And why different controller can handle different work patterns.
     
  7. HTWingNut

    HTWingNut Potato

    Reputations:
    21,580
    Messages:
    35,370
    Likes Received:
    9,877
    Trophy Points:
    931
    Thank you. So the Corsair rep is full of crap then?
     
  8. davepermen

    davepermen Notebook Nobel Laureate

    Reputations:
    2,972
    Messages:
    7,788
    Likes Received:
    0
    Trophy Points:
    205
    yes, of course. the ssd does not know anything about your pc. once it's running (after the bios), all it gets from your pc "there, store that. there, free that. there, store that". it can't know if you're logged on or not, if you run an app, not even what an app is. it knows nothing about the rest of the world. complete blackbox.

    what i guess is, their disk only cleans up while not having had some accesses for a while (no read? no write? no clue!). thus logonscreen.
     
  9. chimpanzee

    chimpanzee Notebook Virtuoso

    Reputations:
    683
    Messages:
    2,561
    Likes Received:
    0
    Trophy Points:
    55
    davepermen is correct.

    You can think of the SSD being a network server which your PC communicate to. It has its own mind of when and how to manage its space. Even modern HDD is in some way doing this but HDD is a much simpler device, in this regard.

    There are lots of 'they think they know everything because they sell it' guys out there, OCZ support staff is a typical example.

    BTW, that is also the reason I don't like SF drive. According to them(OCZ or Corsair), periodic logout is kind of a routine that is needed to give its GC the chance to do its job(I am not sure if they are right or wrong). Which is a total change to my work pattern(when I don't use my computer, I put it to sleep and I never logout, just lock).
     
  10. HTWingNut

    HTWingNut Potato

    Reputations:
    21,580
    Messages:
    35,370
    Likes Received:
    9,877
    Trophy Points:
    931
    I was gonna say, I never log out. I just let it sleep or power down.
     
  11. davepermen

    davepermen Notebook Nobel Laureate

    Reputations:
    2,972
    Messages:
    7,788
    Likes Received:
    0
    Trophy Points:
    205
    me, too. when my pc's on, it's in use. another reason why i chose intel. some are stated to not do any gc for like 20 minutes after the last write. there would be no gc for me in those cases, ever.
     
  12. HTWingNut

    HTWingNut Potato

    Reputations:
    21,580
    Messages:
    35,370
    Likes Received:
    9,877
    Trophy Points:
    931
    Yeah, and I can't find details on any SSD's actually. But as much as I've used my Intel 80GB it's performance has not dropped and it's been installed on three different machines so far.
     
  13. kunekaden

    kunekaden Notebook Deity

    Reputations:
    590
    Messages:
    912
    Likes Received:
    0
    Trophy Points:
    30
    I'm convinced that the idle @ login screen (for "15-25 hours/week" as suggested to me by OCZ support staff) causes higher overall power draw when compared with a traditional HDD