Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Strange memory growth

by huck (Vicar)
on Feb 14, 2018 at 18:28 UTC ( #1209160=note: print w/replies, xml ) Need Help??

in reply to Strange memory growth

Try this

if ( defined $cg->{'mainsnak'} && defined $cg->{'mainsnak'}->{'datavalue'} && defined $cg->{'mainsnak'}->{'datavalue'}->{'value'} && defined $cg->{'mainsnak'}->{'datavalue'}->{'value'}->{'notexist +'}) {}

Replies are listed 'Best First'.
Re^2: Strange memory growth
by spica1001 (Initiate) on Feb 19, 2018 at 14:58 UTC

    Thanks all for the excellent responses. To answer the various suggestions and questions:

    Yes, I posted the exact script that I'm running. Perl version 5.22.1, Ubuntu 16.04.

    Trying huck's or ikagami's suggestions didn't change things, unfortunately.

    Running on the same line repeatedly shows no memory growth, which I can't explain. It's thus possible it's only certain lines of the input file that cause the problem but I'm struggling to see how to identify which.

    Thus it's difficult for me to post data on which I see the problem. The file I'm reading in is the Wikidata data dump (33GB bzipped) (I usually read it in with IO::Uncompress::Bunzip2 but verified that the issue still occurs when unzipped by taking the first 2GB of that file unzipped)

    I'll work on trying to get Data::Diver working and identify problematic lines of the input file.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1209160]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2018-06-18 13:55 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (110 votes). Check out past polls.