-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Trying to initialize large filters results in memory errors, see below. Most likely explanation is the filter is not intended to be used with these parameters. If so, what limits should be used in practice?
>>> import inbloom
>>> bf = inbloom.Filter(10**8, 10**-4)
>>> bf = inbloom.Filter(10**8, 10**-5)
Python(83086,0x7fff7288e310) malloc: *** mach_vm_map(size=18446744073441116160) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
inbloom.error: internal initialization failed
>>>
>>> bf = inbloom.Filter(10**8, 10**-4)
>>> bf = inbloom.Filter(10**9, 10**-4)
Python(83086,0x7fff7288e310) malloc: *** mach_vm_map(size=18446744073441116160) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
inbloom.error: internal initialization failed
>>>
>>> bf = inbloom.Filter(10**9, 10**-3)
Python(83086,0x7fff7288e310) malloc: *** mach_vm_map(size=18446744073441116160) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
inbloom.error: internal initialization failed
>>>
>>> bf = inbloom.Filter(10**9, 10**-2)
Python(83086,0x7fff7288e310) malloc: *** mach_vm_map(size=18446744073441116160) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
inbloom.error: internal initialization failed
>>>
>>> bf = inbloom.Filter(5*10**8, 10**-2)
Python(83086,0x7fff7288e310) malloc: *** mach_vm_map(size=18446744073441116160) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
inbloom.error: internal initialization failed
>>>
>>> bf = inbloom.Filter(5*10**8, 10**-1)
Python(83086,0x7fff7288e310) malloc: *** mach_vm_map(size=18446744073441116160) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
inbloom.error: internal initialization failed
>>> bf = inbloom.Filter(4*10**8, 10**-1)
>>>
This output was produced using OSX with Python 2.7.9 and inbloom 0.2.2. I got identical results on Ubuntu 14 with Python 2.7.10, except that the error messages were uniformly "inbloom.error: internal initialization failed".
Metadata
Metadata
Assignees
Labels
No labels