Skip to content
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

Trivial: print "No free event buffers" warning to stderr instead of stdout #22

Closed
JohnPJenkins opened this issue Jan 22, 2015 · 2 comments

Comments

@JohnPJenkins
Copy link

tw-sched.c, line 180

@laprej
Copy link
Member

laprej commented Jan 22, 2015

Is this different enough from 719d8e4 to make it worthwhile? Are you running into a situation where that logic is not being tripped but you're still reaching a problem state?

@JohnPJenkins
Copy link
Author

I simply want the message that's currently printed to go to stderr rather than stdout (ie fprintf(stderr, ...) rather than printf(...)`). In many of my experiments I redirect stdout and stderr to different files to make it easier to grep through the resulting output.

Relatedly, I would love for there to be an option to kill the simulation after N consecutive failed "allocation" attempts. E.g., last evening before I left I set up a sweep of ~700 simulations, the 10th of which entered an infinite "buffers not available" loop I then killed this morning. A "g_tw_max_consec_nobuf_ct" or something (defaulting to ULONG_MAX or similar) would do the trick, along with a bit of extra logic to track and reset the failure count accordingly. Basically, an "opt-in" workaround for issue #6.

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

No branches or pull requests

2 participants