Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Captive Portal Python script IO issues
« previous
next »
Print
Pages: [
1
]
Author
Topic: Captive Portal Python script IO issues (Read 1217 times)
dpsguard
Jr. Member
Posts: 70
Karma: 2
Captive Portal Python script IO issues
«
on:
August 08, 2023, 01:30:41 am »
Hello All,
In trying to resolve some CPU and IO issues (details at post below, go to page 2 last couple of posts), I find that script cp-background-process.py is switching back and forth between using 100% IO and 0% continuously. Can some other users of captive portal, issue the command "top -m io" to check if this is an issues in general or if I have any configuration issue causing this? My captive portal is simple terms and conditions acceptance click thru and works.
Including the experts @franco and @AdSchellevis for their advice as well.
https://forum.opnsense.org/index.php?topic=35132.15
Thanks
Logged
dpsguard
Jr. Member
Posts: 70
Karma: 2
Re: Captive Portal Python script IO issues
«
Reply #1 on:
August 09, 2023, 01:01:55 am »
Hi @franco and @AdSchellevis
Could you spare some moments from your very busy schedule to advise me on this incessant calls by Python to CPU for IOs? Not sure if this results CPU spikes that I get, or if this will become an issue when many guests try to connects at the same time, in serving the portal page from OPNsense?
Thanks
Logged
dpsguard
Jr. Member
Posts: 70
Karma: 2
Re: Captive Portal Python script IO issues
«
Reply #2 on:
August 09, 2023, 02:34:33 am »
manpage on top for IO was not clear and this is the only document that I find, which explains some arcane terms.
https://klarasystems.com/articles/explaining-top1-on-freebsd/
when I run "top -m io 5", I see 20 VCSW, 10 write IOPS with total of 10 and 100%. My understanding of this 100% for python script for captive portal background process might be wrong and it might just may have meant that python process is constantly write to disk bit only at 10 per second, which might not be an issue. But I will like the devs to confirm that this is how this is supposed to behave and that there is no bug etc that they need to be made aware of to work on it.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Captive Portal Python script IO issues