History | View | Annotate | Download (22.9 kB)
Remove unused stuff and reduce warnings
Remove unused pthread_* stuff and modify variable location to reduce warningsbecause of the define-based compilation.
Split peer request queues.
Each thread has its own peer request queue, frow which it allocates data. Ifthis queue is empty, it tries to "steal" from the "next" thread. This greatlyreduces lock congestion to the peer request queue.
Fix peer termination.
Peer checks if all peer requests are free in all thread, and then proceeds togracefull shutdown.
Also introduce pthread specific variable, holding the struct thread for eachthread.
Fix queue size of per thread queue.
Add compilation warning about MT and ST_THREADS
Add check to not respond request if none associated.
Conflicts: xseg/peers/user/peer.c
Fix signal handling of peers
Make bench send requests faster
Initial support for xseg ops
Simplify port binding code
Complete unification of thread_loop/peerd_loop
Keep naming in peerd_loop consistent
Fix segfault
Unify thread loop with peerd_loop
Since peerd_loop with thread_loop don't have many differences betweenthem, they can be unified in a single loop. TODO is to choose a unifiedname for both threads and peers, as well as fault check theimplementation.
Add support for custom peer loop
There is a new field in struct peerd called "custom_peerd_loop". If anypeer wants to use its own loop instead of the generic loop, it can plugit in that field.
Add S_IWUSR permission bit for O_CREAT
In Ubuntu haven't tested it elsewhere yet gcc has a global cflagcalled "D_FORTIFY_SOURCE=2" that errs when files are not createdwith explicit user permissions. Since files are O_WRONLY, I addedthe S_IWUSR permission bit.
Add defer support to peers
Add support to peer skeleton to defer requests to another peer, by forwardingrequests to another port.
Reimplement xseg paths and add xseg_forward
Reimplement xseg paths. Paths are a tool for the administrator to dynamicallyalter a running xseg setup, by forcing a request to be submitted to a differentport than the original destination.
xseg_forward, on the other hand, allows a peer to alter the normal path of a...
add license headers
make peers expect portno
fix mapper finalizing actions
add finalize function to peers and make mapper close all maps before quitting
fix wrong errno checking in pidfile read
add improved argument parsing. also add helper messages
fix mt-pfiled spin-block lock. also fix mt-peers stopping
modify logging mechanism to support redirection of std streams and logfile reopen
add stdout, stderr redirection of peers to logfile
add pfiled based on peer skeleton
remove some warnings in peer skeleton
fix peer.c pidfile handling on error, plus archipelagos control file changes
make peers daemonize and use pidfiles
mark terminated peer flag as volatile
extend gracefull exit to SIGINT, SIGQUIT
expand gracefull exit to mt peers
implement gracefull exit in peers
merge peers skeletons