GithubHelp home page GithubHelp logo

Comments (5)

bazsi avatar bazsi commented on July 20, 2024

The whole point in the mainloop refactor was to be able to use the same infrastructure for worker threads and io threads.

The fact that we have threadid allows LogQueueFifo to scale properly for input threads.

So we should fix the assert.

from syslog-ng.

algernon avatar algernon commented on July 20, 2024

It's not just the assert. If we fix that, then iv_list_add_tail() will fail horribly later.

from syslog-ng.

algernon avatar algernon commented on July 20, 2024

I spent some time thinking about this issue, and I believe that bringing worker and io threads under the same umbrella was a mistake. At least for drivers that use LogThreadedDestination, the IO thread is intentionally and forcibly separate, and does not behave the same way as worker threads do (ie, they can't execute in the main thread). Making all of them be able to run in the main thread if there is no separate thread available would be a huge undertaking, which I believe is not worth it.

The IO threads used by LogThreadedDestination should, therefore, be handled independently of worker threads.

from syslog-ng.

juhaszviktor avatar juhaszviktor commented on July 20, 2024

I think that a good solution should be, that the input threads (which threads work into LogFifoQueue) get id from a range 1-64, and the other threads get id from a range 65-128.
With this solution the ivykis worker threads and LogQueueFifo can operate as before, and the threaded destinations (which use worker threads) can be in the same infrastructure.

I will send a pull request in a short time which hopefully solve this problem

from syslog-ng.

algernon avatar algernon commented on July 20, 2024

Merged a fix from @juhaszviktor, closing this too.

from syslog-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.