如何清除MacOSX上的目录/ inode缓存 [英] How to clear directory/inode cache on MacOSX

查看:196
本文介绍了如何清除MacOSX上的目录/ inode缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Mac OSX上清除文件系统缓存(例如目录缓存和inode缓存)?我想在寒冷的MacOSX机器上做一些性能分析。我想知道是否有任何方法像 echo 3> / proc / sys / vm / drop_caches 在Linux机器上?

解决方案

purge(8)对你有用吗?


清除可以用来近似初始启动条件用于性能分析的冷
磁盘
缓冲区高速缓存。它不影响通过malloc,vm_allocate等分配的匿名内存。


How to clear file system cache (e.g. directory cache and inode cache) on a Mac OSX? I would like to do some performance analysis on a cold MacOSX machine. I am wondering that is there any approach like echo 3 > /proc/sys/vm/drop_caches on a Linux box?

解决方案

is purge(8) any use to you?

Purge can be used to approximate initial boot conditions with a cold disk buffer cache for performance analysis. It does not affect anonymous memory that has been allocated through malloc, vm_allocate, etc.

这篇关于如何清除MacOSX上的目录/ inode缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆