Thanks for the reply. I'm kind of relieved to know it's not me missing
something easy to spot in my code, and that it's going to go away.
I'll give a try to 1.5-rc1.
> You've hit an already addressed problem
I must have missed that. Did I oversee a list o known issues / bug tracker?
> Notice that you are not running out of memory for allocating the objects,
> but rather your application is failing to create a snapshot - this is where
> the problem is. pmemobj tries to allocate the space for snapshots, but
> it's unable to do so.
If I get it right, it's trying to allocate memory for transaction logs
and fails to do so.
I assume transaction logs and objects use the same memory space, so it
essentially boils down to running out of space, doesn't it?
>> ./017; *./017 100000*
>> Count: *75664* (err: failed to allocate persistent memory object)
>> But when I run the program 100000 times, each time requesting a single
>> memory allocation, I get:
>> ./017; let i=*100000*; while let i--; do *./017 1* || break; done
>> Count: *36* (err: Could not add an object to the transaction.)
>> And when I try to run the program 10000 times allocating memory 10 times
>> in each run, I get:
>> ./017; let i=*10000*; while let i--; do *./017 10* || break; done
>> Count: *360* (err: Could not add an object to the transaction.)
>> (for ×100 I get 3600, for ×1000 I get 36000)
>>
>> As far as I tracked down the "failed to allocate persistent memory object"
>>
>> and "Could not add an object to the transaction", both seems to indicate
>>
>> running out of pool memory.
>>
>> Now there is a vast gap between 75664 successful allocations and 36
>> successful allocations.
>>
>> Am I doing something very wrong, or is it a flaw of PMDK?
>>
>> Regards,
>> Jan
>>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pmem" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
pmem+uns...@googlegroups.com.
> To post to this group, send email to
pm...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/pmem/e3a443ec-3ab6-4f8f-9609-1904d1d15b42%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
>