Statistics
| Branch: | Tag: | Revision:

root / xseg / peers / user / peer.c @ cb5cf301

History | View | Annotate | Download (22.9 kB)

# Date Author Comment
cb5cf301 03/14/2013 06:00 pm Filippos Giannakos

Remove unused stuff and reduce warnings

Remove unused pthread_* stuff and modify variable location to reduce warnings
because of the define-based compilation.

0132045a 03/14/2013 06:00 pm Filippos Giannakos

Split peer request queues.

Each thread has its own peer request queue, frow which it allocates data. If
this queue is empty, it tries to "steal" from the "next" thread. This greatly
reduces lock congestion to the peer request queue.

840248c4 03/14/2013 06:00 pm Filippos Giannakos

Fix peer termination.

Peer checks if all peer requests are free in all thread, and then proceeds to
gracefull shutdown.

Also introduce pthread specific variable, holding the struct thread for each
thread.

e602902e 03/14/2013 06:00 pm Filippos Giannakos

Fix queue size of per thread queue.

9766eebc 03/14/2013 06:00 pm Filippos Giannakos

Add compilation warning about MT and ST_THREADS

ca0d84f8 03/14/2013 06:00 pm Filippos Giannakos

Add check to not respond request if none associated.

Conflicts:
xseg/peers/user/peer.c

eda379a3 03/11/2013 11:52 am Alex Pyrgiotis

Fix signal handling of peers

4bd74afe 03/11/2013 11:52 am Alex Pyrgiotis

Make bench send requests faster

4b114b66 03/11/2013 11:52 am Alex Pyrgiotis

Initial support for xseg ops

105a8ddd 03/11/2013 11:51 am Alex Pyrgiotis

Simplify port binding code

de4c09bb 03/11/2013 11:51 am Alex Pyrgiotis

Complete unification of thread_loop/peerd_loop

d9d4b795 03/11/2013 11:51 am Alex Pyrgiotis

Keep naming in peerd_loop consistent

7498fcb1 03/11/2013 11:43 am Alex Pyrgiotis

Fix segfault

0beaf982 03/11/2013 11:43 am Alex Pyrgiotis

Unify thread loop with peerd_loop

Since peerd_loop with thread_loop don't have many differences between
them, they can be unified in a single loop. TODO is to choose a unified
name for both threads and peers, as well as fault check the
implementation.

8107a952 03/11/2013 11:42 am Alex Pyrgiotis

Add support for custom peer loop

There is a new field in struct peerd called "custom_peerd_loop". If any
peer wants to use its own loop instead of the generic loop, it can plug
it in that field.

b782cd3d 03/11/2013 11:39 am Alex Pyrgiotis

Add S_IWUSR permission bit for O_CREAT

In Ubuntu haven't tested it elsewhere yet gcc has a global cflag
called "D_FORTIFY_SOURCE=2" that errs when files are not created
with explicit user permissions. Since files are O_WRONLY, I added
the S_IWUSR permission bit.

0bb5f1fe 02/27/2013 06:12 pm Filippos Giannakos

Add defer support to peers

Add support to peer skeleton to defer requests to another peer, by forwarding
requests to another port.

e3052736 02/27/2013 05:37 pm Filippos Giannakos

Reimplement xseg paths and add xseg_forward

Reimplement xseg paths. Paths are a tool for the administrator to dynamically
alter a running xseg setup, by forcing a request to be submitted to a different
port than the original destination.

xseg_forward, on the other hand, allows a peer to alter the normal path of a...

6830c9ff 12/10/2012 07:09 pm Filippos Giannakos

add license headers

fe55a21d 12/03/2012 07:13 pm Filippos Giannakos

make peers expect portno

78153e85 11/27/2012 05:16 pm Filippos Giannakos

fix mapper finalizing actions

8de1e033 11/27/2012 01:21 pm Filippos Giannakos

add finalize function to peers and make mapper close all maps before quitting

b7877079 11/22/2012 01:25 pm Filippos Giannakos

fix wrong errno checking in pidfile read

2ae03e3b 11/22/2012 01:18 pm Filippos Giannakos

add improved argument parsing. also add helper messages

53b4cb6a 11/21/2012 04:42 pm Filippos Giannakos

fix mt-pfiled spin-block lock. also fix mt-peers stopping

f7da932a 11/19/2012 07:15 pm Filippos Giannakos

modify logging mechanism to support redirection of std streams and logfile reopen

ede86e83 11/12/2012 03:46 pm Filippos Giannakos

add stdout, stderr redirection of peers to logfile

2f0a0b3c 11/02/2012 07:30 pm Giannakos Filippos

add pfiled based on peer skeleton

96b50cd3 11/02/2012 05:27 pm Giannakos Filippos

remove some warnings in peer skeleton

879dfbad 10/29/2012 06:51 pm Giannakos Filippos

fix peer.c pidfile handling on error, plus archipelagos control file changes

8254abce 10/29/2012 05:40 pm Giannakos Filippos

make peers daemonize and use pidfiles

78e27ba9 10/24/2012 11:52 am Giannakos Filippos

mark terminated peer flag as volatile

f9b80bf2 10/24/2012 10:58 am Filippos Giannakos

extend gracefull exit to SIGINT, SIGQUIT

527597e8 10/24/2012 10:56 am Filippos Giannakos

expand gracefull exit to mt peers

dc7acf55 10/23/2012 05:52 pm Filippos Giannakos

implement gracefull exit in peers

42ae81cb 10/23/2012 04:15 pm Filippos Giannakos

merge peers skeletons