brho / akaros

Akaros Operating System
http://akaros.cs.berkeley.edu/
Other
314 stars 61 forks source link

Running out of Pipes #30

Open brho opened 8 years ago

brho commented 8 years ago

All pipes are globally allocated with a unique ID:

spin_lock(&(&pipealloc)->lock);
p->path = ++pipealloc.path;
spin_unlock(&(&pipealloc)->lock);

After making 4 billion pipes, we'll start reusing the ID numbers from pipealloc.path.

If this isn't a problem, then we should document why, and possibly just remove the pipe ID.