Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想对我的网络上的一些 NIS 性能问题进行短期修复。
我没有 root 访问权限,并且 nscd 已关闭所有缓存。
我想提供类似于本地 nscd 的功能,以允许 getpwuid 缓存其结果,避免许多昂贵的 NIS 查找(有时每次 5-10 秒)
语境:
R 在包加载期间调用 getpwuid 批次。
我不知道有一种简单或优雅的方式来做到这一点。一种选择是实现您自己的 getpwuid 函数并使用LD_PRELOAD将其提供给 R ,但您最好让某人修复 NIS。