Re: [PATCH v2 2/4] src/open_by_handle: program to exercise open_by_handle_at() syscall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Amir:

> +       /*
> +        * now drop the caches so that unlinked inodes are reclaimed and
> +        * buftarg page cache is emptied so that the inode cluster has to be
> +        * fetched from disk again for the open_by_handle() call.
> +        */
> +       ret = system("echo 3 > /proc/sys/vm/drop_caches");
> +       if (ret < 0) {
> +               perror("drop_caches");
> +               return EXIT_FAILURE;
> +       }
> +

The original value of  /proc/sys/vm/drop_caches is 0 in my rpi3. After
this test, it turns to 3. Is it necessary to restore it ?

-- 
Cheers,
Rock
--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux