Page 5 of 5

Re: Afserver crashes

Posted: Mon Mar 27, 2017 12:00 pm
by timurhai
Hi.
Hm, i just sent a job with a block with no tasks and afserver has not hung.
( i`ve also committed "invalUd" fix).
So our sever is working for about a week with a reduced threads stack with no hung.

Re: Afserver crashes

Posted: Mon Mar 27, 2017 12:09 pm
by selsner
yes, it worked since last wednesday without crash.

Re: Afserver crashes

Posted: Tue Jun 20, 2017 9:34 pm
by timurhai
This is this theme related commit:
https://github.com/CGRU/cgru/commit/595 ... 59e4637cf0

I think that it is better to raise all needed threads at once on server start.
As it is more hard to raise 1 thread per connection and than finish thread.
Raising hundreds threads per second (per afrender) can consume much system resources.

I also want to try epoll on Linux.
And it will be configurable what to use for IO, epoll or threads pool.

Re: Afserver crashes

Posted: Tue Sep 12, 2017 8:45 am
by timurhai
EPOLL for linux:
https://github.com/CGRU/cgru/commit/c14 ... f15e5c8012

It configurable to use blocking (threading) or non-blocking (epoll) IO on Linux.
For now epoll is disabled by default. Testing needed.
Also right now code can be compiled only on Linux, #ifdef-s need to skip epoll code for other platforms (and i will do this soon).