I created some performance fixtures that load around 100k+ items through a fixture. While the fixture is loading I get a seg fault: /ruby/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault Would anyone be able to shine some light on this problem? Can fixtures not load that much data? What are my alternatives to load performance data? -- Posted via http://www.ruby-forum.com/.
Greg Lazarev wrote:> I created some performance fixtures that load around 100k+ items through > a fixture. While the fixture is loading I get a seg fault: > /ruby/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault > > Would anyone be able to shine some light on this problem? Can fixtures > not load that much data?Is the process running out of memory, perhaps?> What are my alternatives to load performance > data?Machinist and Faker might be worth a look. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
Marnen Laibow-Koser wrote:> Is the process running out of memory, perhaps?I''m on windows XP and used the Task Manager to see if memory was peaking out, it wasn''t. How else can I tell if a specific process is running out of memory? -- Posted via http://www.ruby-forum.com/.
On Fri, Sep 25, 2009 at 4:28 PM, Greg Lazarev <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''m on windows XP and used the Task Manager to see if memory was peaking > out, it wasn''t. How else can I tell if a specific process is running out > of memory?Can you do smaller load tests and extrapolate up from there ? Does 10K also segfault? -- Greg Donald http://destiney.com/
I successfully loaded about 35K records. It''s really when it gets above 100k that it seg faults. -- Posted via http://www.ruby-forum.com/.
On Fri, Sep 25, 2009 at 3:50 PM, Greg Lazarev <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I successfully loaded about 35K records. It''s really when it gets above > 100k that it seg faults.What version of Ruby are you on? Could it be a particular fixture that is segfaulting YAML? Can you do a binary search and pinpoint exactly how many fixtures until segfault? Colin
Colin Curtin wrote:> On Fri, Sep 25, 2009 at 3:50 PM, Greg Lazarev > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> I successfully loaded about 35K records. It''s really when it gets above >> 100k that it seg faults. > > What version of Ruby are you on? Could it be a particular fixture that > is segfaulting YAML? Can you do a binary search and pinpoint exactly > how many fixtures until segfault? > > > ColinI''m using ruby 1.8.6 on Windows. My fixture loads records in a loop. I think around 60K the seg fault occurs. This happens to two different fixture files. I''m really starting to think it''s a memory issue. How can I increase the amount of memory being used by the process? -- Posted via http://www.ruby-forum.com/.