[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
It all depends on the hardware, but I noticed that after you pass 3-4k cps you run into this kind of issues. - ovidiu On Sat, Mar 23, 2024 at 22:11 Alex Balashov via sr-users < sr-users@lists.kamailio.org> wrote: > > > On Mar 23, 2024, at 9:30 PM, Ovidiu Sas wrote: > > > > In the end, we agree

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Alex Balashov via sr-users
> On Mar 23, 2024, at 9:30 PM, Ovidiu Sas wrote: > > In the end, we agree with each other and my feeling is that we are repeating > the same concept. Yeah, I think that's mostly right. > In most of my deployments I don’t need to mess with the udp queue size. > For high cps traffic, from my ex

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
The OP didn’t provide any additional info. Maybe he’s doing db operations. Maybe he’s running something else on the server. The traffic can be generally ok and then the OS is doing something weird or some other application is doing something weird that can affect kamailio for a short period of time

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Alex Balashov via sr-users
> On Mar 23, 2024, at 7:29 PM, Ovidiu Sas via sr-users > wrote: > > Because you have dropped packets. > The queue it’s empty most of the time and if is full for a few milliseconds > and that’s the moment when you experience dropped packets. Totally fair. Just wondering if that's what we're d

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
Because you have dropped packets. The queue it’s empty most of the time and if is full for a few milliseconds and that’s the moment when you experience dropped packets. On Sat, Mar 23, 2024 at 19:23 Sergiu Pojoga via sr-users < sr-users@lists.kamailio.org> wrote: > > if most of the time the udp

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
Things could cascade due to retransmission. It all depends on how much the system is loaded and the type of the traffic and message handling in kamailio. Sometimes the system recovers and works ok for a while until the next burst. -ovidiu On Sat, Mar 23, 2024 at 18:28 Alex Balashov via sr-users <

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Alex Balashov via sr-users
> On Mar 23, 2024, at 7:19 PM, Ovidiu Sas wrote: > > Things could cascade due to retransmission. > It all depends on how much the system is loaded and the type of the traffic > and message handling in kamailio. > Sometimes the system recovers and works ok for a while until the next burst. Some

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Sergiu Pojoga via sr-users
> if most of the time the udp queue is empty and dropped packets are observed, then the size of the udp queue is too small. Hmm.. why would you need to increase the queue size if nothing gets queued up? On Sat, Mar 23, 2024 at 6:38 PM Alex Balashov via sr-users < sr-users@lists.kamailio.org> wro

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Alex Balashov via sr-users
> On Mar 23, 2024, at 6:05 PM, Ovidiu Sas wrote: > > if most of the time the udp queue is empty and dropped packets are observed, > then the size of the udp queue is too small. But would that happen with a sipp load test, once the threshold of dropped requests is observed? -- Alex Balashov

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
I’ve had issues with cpp and just to get more throughput I had to increase the size of the udp queue. It is also true that the cps was ten times higher. In the end, is very simple: if most of the time the udp queue is empty and dropped packets are observed, then the size of the udp queue is too sm

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Alex Balashov via sr-users
> On Mar 23, 2024, at 5:19 PM, Ovidiu Sas wrote: > > But the CPU is not the limiting factor. We can agree on that, at least. :-) > Back to the funnel analogy: you have a big bottle and you are using a small > funnel. That will not work well. If you use a bigger funnel with the same > bottle

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Alex Balashov via sr-users
> On Mar 23, 2024, at 5:14 PM, Ovidiu Sas wrote: > > But if you are dealing with network jitter and several clients pumping > traffic at different rates, for a short period of time all the workers will > be busy while new SIP messages will pile up and the default queue will not be > able to h

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
But the CPU is not the limiting factor. Back to the funnel analogy: you have a big bottle and you are using a small funnel. That will not work well. If you use a bigger funnel with the same bottle (the bigger funnel must fit the bottle), than you can handle more liquid. If the funnel is too big fo

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Ovidiu Sas via sr-users
That will happen only if your CPUs are already maxed out. Under ideal conditions, the default should work fine. But if you are dealing with network jitter and several clients pumping traffic at different rates, for a short period of time all the workers will be busy while new SIP messages will pile

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Alex Balashov via sr-users
Fair, but when have you found CPU to be the limiting factor in Kamailio's throughput? Kamailio's workload isn't really computational / CPU-bound. It's closer to something like Node; it's an I/O multiplexer. > On Mar 23, 2024, at 4:53 PM, Fred Posner wrote: > > That could be one scenario. But w

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Fred Posner via sr-users
That could be one scenario. But when I’ve seen there being more than enough CPU it has been there’s a more for 2MB worth of traffic and the OS is making an issue that is easily solved by letting the system handle more traffic. It’s a bottleneck before kamailio. The analogy would be a funnel.

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Alex Balashov via sr-users
Sure, but if you're blowing through the default, that means you're not consistently coping with the load due to some other factors. Does it not follow that enlarging the queue will just give you more backlog without increasing throughput? -- Alex > On Mar 23, 2024, at 1:54 PM, Fred Posner wro

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Fred Posner via sr-users
The default queue I believe is about 2MB. Not very hard to exceed that queue while still having a good amount of CPU/processor available. -- Fred Posner Sent from mobile Phone: +1 (352) 664-3733 qxork.com > On Mar 23, 2024, at 11:47 AM, Alex Balashov via sr-users > wrote: > >  >> On Mar 2

[SR-Users] Re: low performance with no apparent reason

2024-03-23 Thread Alex Balashov via sr-users
> On Mar 22, 2024, at 10:21 PM, Ovidiu Sas wrote: > > The default udp queue length is not enough for high cps. That's interesting. I'm not necessarily saying you're wrong, but I'd be curious to know more about what informs this theory. -- Alex Balashov Principal Consultant Evariste Systems L