Skip to content

std: Turn down the stdout chunk size #16952

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

Merged
merged 1 commit into from
Sep 8, 2014

Conversation

alexcrichton
Copy link
Member

I've found that 64k is still too much and continue to see the errors as reported
in #14940. I've locally found that 32k fails, and 24k succeeds, so I've trimmed
the size down to 10000 which the included links in the added comment end up
recommending.

It sounds like the limit can still be hit with many threads in play, but I have
yet to reproduce this, so I figure we can wait until that's hit (if it's
possible) and then take action.

@alexcrichton
Copy link
Member Author

More references can also be found in the official documentation's last comment: http://msdn.microsoft.com/en-us/library/windows/desktop/ms687401%28v=vs.85%29.aspx

@retep998
Copy link
Member

retep998 commented Sep 5, 2014

For comparison libuv always limits itself to reads and writes of 8192.

I've found that 64k is still too much and continue to see the errors as reported
in rust-lang#14940. I've locally found that 32k fails, and 24k succeeds, so I've trimmed
the size down to 8192 which libuv happens to use as well.

It sounds like the limit can still be hit with many threads in play, but I have
yet to reproduce this, so I figure we can wait until that's hit (if it's
possible) and then take action.
@alexcrichton alexcrichton force-pushed the windows-large-console-write branch from 56d688f to 198030f Compare September 8, 2014 19:55
bors added a commit that referenced this pull request Sep 8, 2014
… r=brson

I've found that 64k is still too much and continue to see the errors as reported
in #14940. I've locally found that 32k fails, and 24k succeeds, so I've trimmed
the size down to 10000 which the included links in the added comment end up
recommending.

It sounds like the limit can still be hit with many threads in play, but I have
yet to reproduce this, so I figure we can wait until that's hit (if it's
possible) and then take action.
@bors bors closed this Sep 8, 2014
@bors bors merged commit 198030f into rust-lang:master Sep 8, 2014
@alexcrichton alexcrichton deleted the windows-large-console-write branch September 10, 2014 17:35
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.

3 participants