-
Notifications
You must be signed in to change notification settings - Fork 63
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
Sleeping Barber benchmark slowing on large inputs #481
Comments
Interesting! At first, I thought this is related to #433, but it seems that not the slow compilation process is the issue here, but that there is a problem in the generated C code or the C runtime. |
I have determined that there is a deadlock associated with tracing. If you turn off tracing, this benchmark runs in 42 msec with 100 chairs and 1000 customers. Compile time is several minutes, however. Tracing should always be turned off for benchmarks, except perhaps when debugging the benchmark or analyzing it for performance issues, but even in the latter case, probably it needs to be much smaller than this for tracing to be useful. Still, there is a deadlock bug with tracing. We need to chase that down. |
Barber.lf has disappeared. Where can I find it? |
OK, I guess it's not in master. 478291f seems to imply it's in benchmarks. I get this:
Being in a "detached head" state seems kind of disconcerting, but what the hey, this is git (not Eclipse, the favorite whipping boy). If I follow the instructions in the above message:
Note that I am now on a local branch and there is no SleepingBarber.lf. |
The detached state is because you are checking out an Using the following should resolve this issue:
|
@edwardalee is using a very old version of Git that doesn't have the Just checking out |
In that case (by creating a local |
Guess we should add this to the Oomph instructions, since you really have to do this every time you do a fresh checkout... Unfortunately, git now thinks I've modified about 30 files that I haven't touched so it won't let me switch back to master... This git personality is quite creative... |
Well, it's Linus Torvalds' pet project that people have latched onto for some reason... |
BTW, AFAIK, if you do a normal Git is a rather powerful tool with very good documentation, like most GNU tools. Git might not always to what you expect, but in situations like these, I have always found it was me not having read the docs, never Git doing something wrong or being unstable. |
Not sure I understand: what does this issue have to do with Oomph?
Which files? If I had to guess, the files were changed by another tool, and perhaps these files belong on a |
Ugh, the comparison between Elon Musk and Linus Torvalds is about as far-fetched as the comparison between Git and Eclipse. Also, good luck trying to |
The SleepingBarber.lf that is now in example/C/src in the benchmarks branch is not an example. Running the program does nothing (no output) and if I uncomment the printf statements, it is way too big to be an example. |
I moved it to the new location, because this is what we decided in the discussion of #401. Please feel free to extend the program so that it becomes more accessible as an example. |
I am working on benchmarks for the C target. Barber.lf has trouble running on my local machine when I increase the problem size to over 1000 customers. For instance, I was able to run a smaller input size of 500 customers and finish within a few seconds:
But when I increase the parameters
num_customers
ornum_chairs
, the compiled program just hang and does not terminate even after 10-20 minutes.The text was updated successfully, but these errors were encountered: