Comments (3)
Extra reference material for interested folks:
- https://medium.com/@felipedutratine/how-to-organize-the-go-struct-in-order-to-save-memory-c78afcf59ec2
- https://github.com/dominikh/go-tools/tree/master/cmd/structlayout
- https://blog.golang.org/slices
- https://blog.golang.org/go-slices-usage-and-internals
from pg_prefaulter.
Additional testing is required to verify this, but this should have been closed with 5250762 when the following was committed:
https://github.com/joyent/pg_prefaulter/blob/5250762/agent/structs/cache.go#L18-L28
from pg_prefaulter.
Small late measurement for posterity: resident size is now only 52M
down from ~1G
previously.
from pg_prefaulter.
Related Issues (20)
- Add and use sampling loggers HOT 1
- close all files when PostgreSQL is not running HOT 6
- expose statistics through the Prometheus protocol
- Automatically register with Consul if detected
- program handles SIGTERM but does not shut down
- prefaulter must start up even if database is not available
- Scrape the WAL file from the process args when PostgreSQL is starting up...
- Dump caches on signal...
- Stream WAL information to a sidecar pg_prefaulter process via a bgworker...
- would like tool for manually prefaulting specific files HOT 1
- Pre-fault in the entire WAL file for the pg_last_xlog_receive_location() segment...
- prefaulter's child process hangs onto xlog files after database is shut down HOT 2
- may miss some pages depending on xlog-mode HOT 1
- panic: bad, open vs close count not the same after purge HOT 1
- Use posix_fadvise(2) instead of pread(2) for faulting pages
- Getting error while starting pg_prefaulter.
- Is this project still being maintained? HOT 1
- Any updates? HOT 2
- Commits for pg10+ change functional behaviour in a possibly unintended manner. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg_prefaulter.