Afserver crashes

General discussions and questions.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afserver crashes

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
selsner
Posts: 47
Joined: Wed Jan 25, 2017 11:20 am

Re: Afserver crashes

Post by selsner »

yes, it worked since last wednesday without crash.
CGRU 2.3.1 - CentOS 7.7

Sebastian Elsner - Pipeline Technical Director - RISE
www.risefx.com
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afserver crashes

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afserver crashes

Post 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).
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply