문제

I want a short term fix for some NIS performance problems on my network.

I don't have root access, and nscd has all caching turned off.

I'd like to provide local nscd-like capability to allow getpwuid to cache its results, avoiding many expensive NIS lookups (sometimes 5-10 seconds each)

context:

R calls getpwuid lots during package loading.

도움이 되었습니까?

해결책

I don't know of an easy or elegant way to do this. One option would be to implement your own getpwuid function and provide it to R using LD_PRELOAD, but you'll probably be better off just getting someone to fix NIS.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top