-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance drop and MemoryError during insert and _consolidate_inplace #26985
Comments
I'm not sure there's any concrete action we can take on this right now. Rewriting the block manager is a long term TODO (search for block consolidation), but it'll likely be a while. |
Could not find anything similar to this issue and with 'consolidation' keyword or relevant to 'block manager' using GH search. There are a few points inside old pandas 1.0 roadmap, but they are rather vague. Anyway, do you have some thesis regarding desired block manager architecture? Or is it still to be figured out? |
Still to be figured out.
…On Sat, Jun 22, 2019 at 7:27 AM Alexey Kondratov ***@***.***> wrote:
Could not find anything similar to this issue and with 'consolidation'
keyword or relevant to 'block manager' using GH search
<https://github.com/pandas-dev/pandas/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+consolidation+>.
There are a few points inside old pandas 1.0 roadmap
<#10000>, but they are rather
vague.
Anyway, do you have some thesis regarding desired block manager
architecture? Or is it still to be figured out?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26985?email_source=notifications&email_token=AAKAOIQTUQIWVZUVZMMUJ3LP3YLD7A5CNFSM4H2SZBK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKINZQ#issuecomment-504661734>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOITEPVP656RPNXGSMHLP3YLD7ANCNFSM4H2SZBKQ>
.
|
What's the impact if I modify the line |
I'm not sure.
…On Fri, Jun 28, 2019 at 10:23 AM metariat ***@***.***> wrote:
What's the impact if I modify the line if len(self.blocks) > 100: to if
len(self.blocks) > 10000: ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26985?email_source=notifications&email_token=AAKAOIWFQVN7OGVG4NNFWR3P4YUFZA5CNFSM4H2SZBK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY2MDLQ#issuecomment-506773934>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIW2L4J4UOOZXM53QDLP4YUFZANCNFSM4H2SZBKQ>
.
|
got almost same error. MemoryError |
I have a similar issue. I am looping over a list of files of same size, and performing some operations. on each. This error happens ~every 9th file... Almost all variables are inside the loop, so getting this error is very strange. Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-45-generic x86_64) |
Code Sample, a copy-pastable example if possible
Problem description
Following this StackOverflow question.
I run this code sample on Ubuntu 18.04 LTS machine with 16 GB of RAM and 2 GB Swap. Execution produces following stacktrace:
I have found following code inside
pandas
core:It seems that this consolidation process takes place every ~100th iteration and substantially affects performance and memory usage. In order to proof this hypothesis I have tried to modify
100
to1000000
and it worked just fine, no performance gaps, noMemoryError
.It looks quite weird from my perspective, since 'consolidation' sounds like it should reduce memory usage. Probably
pandas
should allocate some private Swap files (e.g. viammap
) if it is running out RAM+SystemSwap in order to be able to successfully complete consolidation process.Expected Output
Without substantial freezes every ~100th iteration and
MemoryError
.Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.8.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-50-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: None
pip: 9.0.1
setuptools: 39.0.1
Cython: None
numpy: 1.16.4
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2018.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: 0.999999999
sqlalchemy: None
pymysql: None
psycopg2: 2.7.3.1 (dt dec pq3 ext lo64)
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: