Page 6 of 6 FirstFirst ... 456
Results 51 to 53 of 53

Thread: HOWTO: Clear filesystem memory cache

  1. #51
    Join Date
    Feb 2013
    Beans
    1

    Re: HOWTO: Clear filesystem memory cache

    hi to all. is my first post so hello to all freinds.

    i have dhis problem just on vmware server

    i try a lots time but same

    Code:
    root@ns1:~# sudo su
    root@ns1:~# echo 3 > /proc/sys/vm/drop_caches
    bash: /proc/sys/vm/drop_caches: Permission denied
    root@ns1:~# sync
    root@ns1:~# sudo su
    root@ns1:~# sync
    root@ns1:~# echo 3 > /proc/sys/vm/drop_caches
    bash: /proc/sys/vm/drop_caches: Permission denied
    root@ns1:~# sudo sync; echo 3 | sudo tee /proc/sys/vm/drop_caches
    tee: /proc/sys/vm/drop_caches: Permission denied
    3
    root@ns1:~# echo 3 > /proc/sys/vm/drop_caches
    bash: /proc/sys/vm/drop_caches: Permission denied
    root@ns1:~# sudo -s
    root@ns1:~# echo 3 > /proc/sys/vm/drop_caches
    bash: /proc/sys/vm/drop_caches: Permission denied
    root@ns1:~# sync; echo 3 > /proc/sys/vm/drop_caches
    bash: /proc/sys/vm/drop_caches: Permission denied
    root@ns1:~# sudo sync; echo 3 | sudo tee /proc/sys/vm/drop_caches
    tee: /proc/sys/vm/drop_caches: Permission denied
    3
    root@ns1:~# sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"
    sh: /proc/sys/vm/drop_caches: Permission denied
    root@ns1:~#
    on real server work fine.

    drop_caches iam sure dont work on virtual servers

  2. #52
    Join Date
    Dec 2006
    Beans
    1,089

    Re: HOWTO: Clear filesystem memory cache

    Quote Originally Posted by rubeni View Post
    hi to all. is my first post so hello to all freinds.

    i have dhis problem just on vmware server

    i try a lots time but same

    [CODE]root@ns1:~# sudo su
    root@ns1:~# echo 3 > /proc/sys/vm/drop_caches
    bash: /proc/sys/vm/drop_caches: Permission denied
    ...
    I use this command but i get the same error when trying it with sudo. I have to log in as root (which is disabled by default in ubuntu) and then it works fine. This happens to me as a 'sudo' user in other distros as well.

    Ben

  3. #53
    Join Date
    Apr 2013
    Beans
    4

    Re: HOWTO: Clear filesystem memory cache

    This command has been so useful!

    Use free to see how the memory situation looks, then sudo su, sync, echo 3 > /proc/sys/vm/drop_caches, exit, and I'm home free =)

Page 6 of 6 FirstFirst ... 456

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •