SSD Trim and maintenance

Comments

90 comments

  • Alexander David Frick

    Has anyone used it yet? JCloud Ted Larson Bidwell Ely

    Also Chromium Dev Editor has been updated with same fixes but logo change and better Readme.>>

    https://github.com/Alex313031/Chromium-Dev-Editor 

    0
    Comment actions Permalink
  • Alexander David Frick

    Ted Larson make sure you click inside the terminal window. Also the latest cloudready version (ver 90.1, but you must be on the developer channel; if you need help with that I can post kb article.) now (finally) makes crosh a separate app. Pressing Ctl +Alt + T now opens a brand new widow with its own tabs (they don't work) however on chromiumos 92 (my own builds) the tabs now work and Ctrl  + T opens more terminal tabs within the scope of the parent terminal. Anyway this makes it easy and great for people who are on the cmdline all the time like me. If it STILL doesn't work, there is always the TTY terminal (a true, non-gui linux shell). You can acess that by pressing Ctrl + Alt + F2. Pressing the same but with F1 brings you back to the GUI. When it asks for "login" just type chronos and enter. Chronos is the "shared user account" (using weird ass bind mounts and linux trickery) That the system sees as your user account number (which is a long GUID and changes with logins and adding users) but also as a "backup user" which can invoke sudo. This is how your'e able to do root stuff in the GUI terminal: it auto logs you into chronos. On TTY however there's no fancy colors, auto completion, copy paste, or auto login. But you can switch back and forth to the gui if you forget my commands. You can run my script from there. When you are all done just press Cntl + D (which logs you out AND assuming you are in the GUI, will also close crosh) I probably added too much unneeded explanation but some people like that. KISS: just press ctl alt f2, do commands, ctl D to exit. And only do this if the GUI crosh still doesn't work for you.

    0
    Comment actions Permalink
  • Alexander David Frick

    Also wait are you on a chromebook or cloudready that you want to do this on? Ted Larson

    0
    Comment actions Permalink
  • JCloud

    I don't really want to do this on my Chromebook I prefer it to manage these things itself, it's new so probably not needed anyway. I'd try it on my CR machine but they actually had new SSDs but get no use.

    I think Ted might struggle to do this, don't know what time zones you guys are in but might be worth dialling into his machine direct via

    https://remotedesktop.google.com/

    Ted if you can arrange a time, you'd just need to give Alexander a code on here so he can dial in and then every now and then click again to confirm (think it 30 or 40 mins) you still give him permission. Once he dialled in you can edit the post on here so code no longer appears. The codes time out after 5 mins anyway, although that does mean you two would have to agree an exact time without fail, lol.

    0
    Comment actions Permalink
  • JCloud

    The reason I always say I like Chrome or Chrome OS / CR to manage itself is because a lot I am giving machines to people and I need to know how well the machine handles itself with no techy involvement. When I give someone a machine most time I never see it again, they wont do any maintenance or tech stuff, so even when I'm using I keep to a minimum so I know how the machine will be roughly for them. I want them to get the most out of a machine but with Minimum maintenance (they don't have time and wouldn't even if they did), so that's how I do things myself.

    This course not true with Alexander, but another reason I like a minimalist system and maintenance is because using extensions etc just either leads to lost weekends when things go wrong or security issues. Like on Windows 10 there's lots of tools to recreate the Windows 7 start menu etc but they found tons of security issues with it. Even now Google are having major issues with Extensions and Playstore apps because of security. On this forum when we diagnose a system issue the first thing we ask is what extensions / flags you got set / system tampering have you done. Time and Time again I see it where people forgot they have a flag set or think a little bit of system tampering won't affect things, then when goes wrong they come here and blame Neverware.

    A minimalist system just makes life easier and actually more secure, I only every stray from the bare minimum on rare occasions. On Windows you have to get more techy because the core system sucks but on CR there's very little need. My hope is that moving people I help to Chrome OS will massively cut down maintenance issues.

    After all we still don't know if Teds machine is slow because of SSD write issues.

    0
    Comment actions Permalink
  • Ted Larson

    I would be willing for remote login, but my schedule is a little screwy right now. I'm currently on Pacific Daylight Time. west coast of North America. I'm usually up from 4 a.m. to 10:00 p.m.

    0
    Comment actions Permalink
  • Alexander David Frick

    OK that works Ted Larson It shouldn't take that long. I'm in central which is two hours behind. What would be a good time for you. I'm pretty free. I already have the remote desktop app installed. You can get it at https://chrome.google.com/webstore/detail/chrome-remote-desktop/inomeogfingihgjfjlpeplalcfajhgai Just lemme know. Just off the top of my head I was like what about 5 for me which would be 7 for you. Just thinking about how people usually get off work at 5 and if you go to bed at 10 something in the middle ya know. 

    JCloud everything you said is true, and yes it's a lil different for me because I love fucking with stuff, tampering, experimenting, and fixing stuff if I broke it. I use a fair bit of extensions but most are well used, reviewed, and often open source. And I review the permissions and look at resource usage. And yes Ted Larson issue could be something else entirely and I'm willing to help where I can/if possible. I had always thought of writing a script but I was like eh too much. But then I was like hey someone else with a use for it and wanted to practice some bash scripting. This flow of work also motivated me to make the chrome dev editor (which JCloud if you wanted to try I can assure it is safe as it was originally made by the chromium devs themselves and I've done nothing that would change security.) While there's alot of variables that could impact performance even in something like chromiumos I have personally seen the built in trim thing fail to do it often enough (or at all on my current machine) and cause issues. The main thing is while cookies are going down and not very big, the browsers cache is ridiculous, and getting bigger with bigger page sizes, spread among hundreds of randomly named folders (for security and DOM isolation when you're caching full pages themselves.) and many sparse files that are constantly changing. This type of reading and writing and renaming and deleting lots of small files is the exact stuff that affects ssd's the most. So even with a fast SSD, the browser may constantly be polling the kernel for cache data (which ironically is supposed to speed page loads up) and with fast internet (mine's 175mb/s) page loads can be  FASTER if you disabled the cache and just loaded fresh, especially true for older HDDs. I think (and this is speculation) this issue is because chromiumos is only designed around a small subset of solid state storage out there, there may be times like in my case where It will simply fail to recognize that it is on an ssd and fail to run trim automatically. This is because unlike windows which reads firmware and failing that makes an average of read write speed and decides if it's an ssd, chromiumos ONLY reads firmware. And most modern ssds have firmware that can tell a kernel it is ssd. But cloudready is being used on all sorts of hardware never intended for chromiumos originally. Same issue has happened with debian older than debian 8. If the SSD didn't have pollable firmware, it would just assume is was an HDD and mount it without the discard flag in /etc/fstab, "discard" being a mount flag that tells the kernel to trim the device every x hours, which is settable with a systemctl comand (I forgot what that is or if its the same now) In your case, since you are on chromebook hardware, there should be no issues. In my case, I have yet to see where it has trimmed itself which you can see in the kernel logs which I inspect every now and again for fun (though I may have missed it) And when I did a manual trim it trimmed ALOT and took almost as long as the defrag in my script, pointing to heavy "untrimmed blocks". So depending on his hardware, age, and disk usage which includes browsing with the caching I mentioned, it may or may not be his problem. Thanks for pointing out chrome remote desktop, I didn't even think of that because I've never remoted to anything besides my server in the other room. Chrome remote desktop is SO much easier than fiddling with RDP if your'e using anything other than straight windows.

    Also this is HILARIOUS, within 30 mins of reading your comment, JCloud, the ONE extension I had that I've had for forever but didn't ever look for security shit, just was disabled and taken from the store, because the new maintainer (was a fine app in my usage), decided to start making background redirects to insert ads into pages, flagged as malware (as it should) Luckily chromium immediately disables and reports it to you. But yeah just goes to show, as far as app stores go, the chrome web store and google play store are definitely less stringent and have had alot more malware slip through than the apple app store or the fire store for amazon devices. I hadn't even used the extension in forever as I now use Dark Reader (trusted and multi platform app). Just goes to show you though no matter how secure an OS is you can always compromise it with user stupidity.

    0
    Comment actions Permalink
  • JCloud

    When the web started Yahoo was big and it was a directory every site put in its search checked by a person.

    Then it got too big and AI took over and that led to Google.

    Any large database search, apps, web store is now too big for humans to manage direct, AI is good but not perfect. Keeping these apps stores safe is just too hard for AI or Humans. You need more resources to manage the "situation" than there are resources in the actual situation. Even if it's possible it's unlikely to be cost effective for private firms hence why Google are even struggling. It's similar to how if everyone uses resources like the Western World does we'd need 4 Planets. The Universe doesn't seem capable of containing human ambition, though maybe there are tech solutions out there, or maybe just more wars or slavery........

    I use incognito mode a lot, how does that affect caching etc?

    You don't actually need the extension or pwa for remote it works just using the website also. I use it for work, using VPN and android RDP app provides slightly better experience but I'm too lazy for that most of the time.

    Yeah these extensions creators just like software devs in the old days start off with good intentions of changing the world, then realise it's hard work with little thanks (and a lot of trolls) and want to cash in and just sell to any dodgy people with enough coin. It becomes a situation where Google, Microsoft, Apple, Amazon become trustworthy because they are making enough money that they don't need to do dodgy stuff (well more than they already do anyway). So I try to stick with them because you know where you stand and with their resources you can largely guarantee they will still be "alive" in 5 years time. So you feed the monopolies and in effect they become public services and it's like a tax you choose to pay for your sins.

    No pressure Alexander but it's up to your generation to sort all the above out, lol. Thanks for your work so far.

    I moan a lot about tech things, but I want to work in tech dev of some sort. I just understand the average person will never get too techy because of time priorities or intelligence or interest. You'll never change that as much as you'll never change people who are the opposite.

     

     

    0
    Comment actions Permalink
  • Bidwell Ely

    Zainullah Khan, this thread should give you insight into your question.

    0
    Comment actions Permalink
  • Ted Larson
     
    Alexander David Frick it's Thursday the 24th today I can be online at 5 pm my time, 7 pm your time on this form waiting to connect with you.
    0
    Comment actions Permalink
  • Alexander David Frick

    Ted Larson Okay I'm ready

     

    0
    Comment actions Permalink
  • Ted Larson

    ok

     

    0
    Comment actions Permalink
  • Ted Larson

    Do you need me to generate a code

     

    0
    Comment actions Permalink
  • Alexander David Frick

    JCloud I like how you put human ambition containment and the tax for sins lol, and you should start a journal bitching about tech companies and the world at large, 90% of your shit is spot on. As scrooge said in the disney 2009 film to his nephew "you're quite a powerful speaker, sir; a wonder you don't go into parliament".

    Incognito mode just doesn't record history, tracking is set to blocked (but you should turn blocking on all the time), and third party cookies are disabled. Cache hits related to cookies will be a lil smaller but it pales in comparison to the webpage and script caching the browser always does unless manually turned off with a commandline flag. Yeah we need to *country accent* edumacate and learn deez here developers on good ol' christian morals.

    Yeah you can use the site but idk I just prefer the app and its not a big deal to install it from the web store but Ted Larson you don't have to do that I just provided the link if you wanna. 

    0
    Comment actions Permalink
  • Alexander David Frick

    Ted Larson yes plz sir

    0
    Comment actions Permalink
  • Ted Larson

    I've already installed it and I got the code

     

    0
    Comment actions Permalink
  • Ted Larson

    4428 8497 2979

    0
    Comment actions Permalink
  • Ted Larson

    if the code isn't working I'll get the link

     

    0
    Comment actions Permalink
  • Alexander David Frick

    Ok and these codes are ephemeral so you can post it here, after I log out it will be useless for anyone else to access your machine. If you wanted, however, I can give you my email and for anyone else one here.

    On another note JCloud Bidwell Ely I'm currently compiling the latest ChromiumOS @ ver. 94.xx.xx. Gonna see what new features there are. My CPU is hurting please say a prayer for it lol. It's crazy too the ninja compiler process is taking up a whole 7Gb ram all by itself.

    0
    Comment actions Permalink
  • Alexander David Frick

    Ok it's connecting but Ill let you know if I need the link 

    0
    Comment actions Permalink
  • Alexander David Frick

    Fuck I was connected and said "Im here" in a tab and pressed cntrl + W to close the tab but it redirected here to local machine so It closed the connection please generate new code sorry Ted Larson

     

    0
    Comment actions Permalink
  • Ted Larson

    We still connect it

    0
    Comment actions Permalink
  • Alexander David Frick

    It will appear that way on your end. But reopening it on my end asks for another code and putting in the same one says it is expired. So disconnect on your end, regen a new code, then post it here. Ill remember not to use shortcut keys lol.

    0
    Comment actions Permalink
  • Ted Larson

    3273 5775 3369

    0
    Comment actions Permalink
  • Alexander David Frick

    OK im here when you're back up we'll continue

    0
    Comment actions Permalink
  • Ted Larson

    7608 4277 0587

    0
    Comment actions Permalink
  • Alexander David Frick

    Also Ill just modify my script locally on your machine so it wont throw these errors and you'll be able to do it yourself with sdb in place of sda. Where it is installed it will be usable everywhere but will still need sudo permissions and the fs must be read write (ver.90 has the same bug so when you upgrade it will need another "sudo disable_verity") but after that everything should work fine

     

    0
    Comment actions Permalink
  • Alexander David Frick

    OK we finally got the original goal of this post done and Ted Larson is trimmed lol. 

    Lemme know if it helps.

    Another thing I jsut thought of is since it's a mac, GPU compositing may be off by default for compatabiltiy, but this forces the CPU to do all the work. You can go to chrome://flags, search for "GPU", and the first listing "override software rendering list" can be switched to enabled. 90% of the time this works fine and enables the normla behavior of allowing the GPU to render and composite things. You can check to see if it's working at chrome://gpu

    0
    Comment actions Permalink
  • Ted Larson

    When I get some time this weekend I'll do a reinstall too bad they still didn't have power wash

     

    0
    Comment actions Permalink
  • Alexander David Frick

    I will upload a version of the script that works with dual drive systems. Then when you reinstall I can put it back on your system. Try the gpu thing though it has helped on systems that had rare GPUs or old ones. Do you know what mac model yours is and if it is on the certified model list?

    And yeah, with the modifications they make a powerwash is pretty much out of the question. I have tried force powerwashing via the command line on a fresh install just to see what it would do and it bricked it.

    0
    Comment actions Permalink


ChromeOS Flex is replacing CloudReady, so this community is no longer accepting new comments.

Please visit the ChromeOS Flex Help Community to post any new questions or thoughts! You can still link back to this or other pages in this community in order to reference past conversations.

Please sign in to leave a comment.