From: Misha P. <mis...@gm...> - 2013-04-18 12:55:40
|
On 18 April 2013 21:11, Alexey Zakhlestin <ind...@gm...> wrote: > > On 18.04.2013, at 15:17, Misha Penkov <mis...@gm...> wrote: > > I'm trying to load data from a large YAML file (approx. 300MB). PyYAML > hangs when I try to load using this code: > > > > import yaml > > y = yaml.load(open("/tmp/tmp6aJfKz")) > > > > The YAML file itself is valid (it is being output by OpenCV). > > > > Can anyone suggest a way to diagnose this problem? I can provide the > file, but as I've already mentioned, it's fairly large. > > did you check resource-usage? could it be, that Python just grabbed all > RAM it could reach and started to actively use swap? > Thank you for your suggestion. I noticed that RAM usage grew slowly until it consumed almost the entire available RAM (64GB) on my machine. Why is this happening, and how can I get it to load the YAML file properly? |