-
Notifications
You must be signed in to change notification settings - Fork 174
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
high concurrency ( >8) query , postgresql(cstore_fdw) crash #13
Comments
@jyzhao2006
Any additional information that you might think can be relevant is welcome :) Update. I see from the log that you used the |
Hi,thanks for your anther! I found the problem. The postgresql was killed by linux oom killer when I test PG with 8 thread concurrency query. The value I use in " select * from table limit 1 offset $1 " is generated Randomly. |
Hi, I have other questions.
Thank you very much! |
|
@jyzhao2006 did reducing stripe_row_count solve the memory problem? |
sorry, I forget give feedback because i am busy with other things these days. Thanks for your advice, reducing stripe_row_count did decrease the memory usage so i can run more concurrent request. I think cstore_fdw consume too much memory when concurrent query is high, can you optimize this? |
I think we should be able to shrink the memory usage by 2x-3x, but more than it seems a bit difficult. I have to look into how infobright achieves this. One difference between cstore_fdw and infobright is that cstore_fdw currently only modifies the scanner node of PostgreSQL and other parts of PostgreSQL don't know / don't care that the scanner node is column store or a row store. While infobright is a column store from ground up, so they might be able to optimize better. |
@pykello |
I ran a test with 8 thread , and encountered server crash . when the thread number is 4, it is okay.
see the log below:
postgres=# LOG: server process (PID 29409) was terminated by signal 9: Killed
DETAIL: Failed process was running: select * from jaelog limit 1 offset $1
LOG: terminating any other active server processes
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
The text was updated successfully, but these errors were encountered: