Giter VIP home page Giter VIP logo

Comments (7)

kmatt avatar kmatt commented on August 16, 2024

Having experienced the OOM on a vanilla PostgreSQL instance, I started using this (in the init script, or a cron job), to keep Postgres out of its crosshairs:

for p in `pgrep -P 1 postmaster`; do echo "pid $p"; echo -17 > /proc/$p/oom_adj; done

from cstore_fdw.

pykello avatar pykello commented on August 16, 2024

@btubbs Thanks for reporting this. Improving the memory usage is in our road map. Giving a warning is also an interesting option, and definitely worth looking into.

Can you please send your data file + table schema to [email protected] so I can look into this in more detail?

from cstore_fdw.

pykello avatar pykello commented on August 16, 2024

@btubbs Can you also try reducing stripe_row_count to see if it helps? Currently we buffer stripe_row_count rows in memory before flushing to disk, so memory usage is "stripe_row_count * average_row_size * constant (usually 3..5)".

The default stripe_row_count is 150000. Based on the number of rows you have in your CSV file, you can adjust it to your use case, so it uses less memory. Decreasing stripe_row_count too much can cause some performance issues.

from cstore_fdw.

pykello avatar pykello commented on August 16, 2024

As an update, I have looked into the problem of memory usage, and have written a write-up with a list of our options here.

We will make some of the changes in our 1.2 release. Please see our roadmap.

from cstore_fdw.

mtuncer avatar mtuncer commented on August 16, 2024

We have been working on this issue for some time now. Write optimizations gave promising results especially in compressed case. Changes are currently in review stage, they will be here in 1.2 release which is expected to be out in mid jan 2015.

from cstore_fdw.

mtuncer avatar mtuncer commented on August 16, 2024

changes are committed into develop branch, available immediately

from cstore_fdw.

pykello avatar pykello commented on August 16, 2024

Merged into master. Closing.

from cstore_fdw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.