Best approach to utilize RamDisk for Chrome?

237

In general, the virtual memory subsystem and filesystem of your OS are smarter than you about how to allocate and use physical memory (especially for filesystem buffer caching). By devoting a chunk of RAM to a ramdisk, you are reducing the amount of RAM available to your OS by dedicating it to one single purpose. If you take too much RAM away from your OS, you will experience general performance degradation caused by low availability of RAM, though the application(s) that use the ramdisk may perform better. This is a trade-off you have to make.

Share:
237

Related videos on Youtube

BernardV
Author by

BernardV

Updated on September 18, 2022

Comments

  • BernardV
    BernardV over 1 year

    I am currently using regex: /^\d+$/ to do numeric only field validation, but I have a need to extend this if possible with the following rules:

    Only 7 numeric characters OR 13 numeric characters

    Examples:

    • Pass: 1234567
    • Pass: 1234567890123
    • Fail: 12345678
    • Fail: 12345678901234
    • Fail: 12@45!78901234
    • Fail: 12@45!78
    • Fail: 123
  • j riv
    j riv about 11 years
    I understand this general note of wisdom but there is a situation one would need to bypass the Operating System: A very quirky hard disk that isn't of importance to be replaced but it does create problems the OS does not detect (for example parking its heads excessively and its power options being quirky, not allowing disabling it, even if its data is secure).
  • Admin
    Admin over 7 years
    @Restuta No, actually I did not downvote it. Actually I like that solution. Maybe someone else downvoted it during the period when it was missing the ^ and $. It's not unreasonable to downvote wrong answers, and not everyone then reverses their vote when the problem is fixed. BTW have now cleaned up the comment stream.
  • Restuta
    Restuta over 7 years
    agree, not sure why you think it's wrong when it's missing ^ and $. Like you said this is not the place to write exact regexes, that's why I prefixed it with "something like" and not "do exactly this"
  • Admin
    Admin over 7 years
    @indramurari Actually, it does provide an answer to the question. Why would say that it does not?
  • Nikhil
    Nikhil over 7 years
    @torazaburo It shoud be comment. If it is an answer it should have very good explanation to it that why it will work as you have done it in your answer
  • Mritunjay
    Mritunjay over 7 years
    @indramurari well, What I thought it's a really simple regexp. And the no ways I think it's just a comment.
  • BernardV
    BernardV over 7 years
    Your solutions seems to work perfectly thanks Mritunjay!
  • BernardV
    BernardV over 7 years
    Thank you for the detailed explanation @torazaburo
  • Admin
    Admin over 7 years
    @indramurari I agree that the answer could definitely use more explanation, but the lack of such explanation in and of itself does not mean that this "does not provide an answer to the question". If you don't like the lack of explanation, then down-vote it, but don't flag as "not an answer".