LRUキャッシュを使用して、かなりヘビーデューティーな処理を高速化しています。それはうまく機能し、物事をかなりスピードアップします。でも...
マルチプロセスを実行すると、各プロセスが独自の個別のキャッシュを作成し、同じもののコピーが8つあります。ボックスのメモリが不足し、結果として悪いことが起こるまで、それは問題ではないようです...
Ideally I only need a cachesize of around 300 items for the application, and 1*300 will fit in the 7GB i have to work with, but the 8*300 just doesn't fit.
How do I get all the processes to share the same cache?