Skip to content

Conversation

@christianEQ
Copy link
Contributor

@christianEQ christianEQ commented Dec 1, 2020

New server threads need reasonable memory for LZF compression's hash table. This will allocate 8MB minimum, which is the default on Ubuntu. Fixes #204.

@christianEQ christianEQ changed the title Allocate 8MB minimum to Allocate 8MB minimum to stack for new server threads Dec 1, 2020
@JohnSully
Copy link
Collaborator

Needs a description of the problem and what the fix accomplishes. Commit message needs to reference the issue being fixed.

src/server.cpp Outdated

pthread_attr_t tattr;
pthread_attr_init(&tattr);
pthread_attr_setstacksize(&tattr, 1 << 23);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Give a comment on the size in MB

@JohnSully JohnSully merged commit 66a41da into Snapchat:unstable Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multi-Master - rdbcompression seg faults

2 participants