From 1e79745e801db06783dc74348f10208dda776267 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 26 Apr 2022 13:58:50 +0200 Subject: paging: Decouple retransmit period from regular worker interval Before this patch, on each BTS a 500ms timer was used to schedule some work, sending up to 20 paging requests verytime. This means, however, for an initial paging request it may take up to 500ms delay to be scheduled to the BTS, which is huge. While we still want to maintain this 500ms interval for retransmits, it doesn't make sense to wait that much for other cases. It's far better sending less requests (10 instead of 20) every half time (250ms instead of 500ms), since it will spread the load and paging more over time, allowing for other work to be done in the middle. Change-Id: I7a1297452cc4734b6ee8c38fb94cf32f38d57c3d --- include/osmocom/bsc/paging.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmocom/bsc/paging.h b/include/osmocom/bsc/paging.h index 2102e0491..d9fd501b6 100644 --- a/include/osmocom/bsc/paging.h +++ b/include/osmocom/bsc/paging.h @@ -82,6 +82,8 @@ struct gsm_paging_request { /* How often did we ask the BTS to page? */ int attempts; + /* Timestamp of last time the subscriber was paged */ + struct timespec last_attempt_ts; /* MSC that has issued this paging */ struct bsc_msc_data *msc; -- cgit v1.2.3