uwsgi-cgi: General cleanup

* Remove stray LICENSE file added to repo
* Use codeload instead of git
* Add proper (as close as possible) SPDX license
* Drop OpenSSL, PCRE and Libxml2 as dependencies
  Makes it more suitable alternative for small flash devices
* Drop /etc/uwsgi as there's only one config file
* Remove stray /etc/nginx directory
* Reorganize configuration file
* Convert init.d script to use procd
* Hardset 3 threads and processes, seems like a good tradeoff
  between performance and memory usage instead of doing
  auto scaling based on amout of cpu cores/threads

Non-scientific benchmark (tm)
ramips, mt7621, WiTi Board 16/256M

1. 3 threads, 6 processes
2. 2 threads, 2 processes
3. 3 threads, 3 processes

- LuCI Main page

1.48s
1.72s
1.64s

- Status --> Firewall

6.24s
6.39s
6.40s

- Status --> Kernel log

266ms
256ms
251ms

- Network --> Firewall

936ms
1.08s
1.07s

- Network --> Wireless

1.39s
1.42s
1.40s

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
This commit is contained in:
Daniel Engberg
2018-07-15 22:53:35 +02:00
parent d42e863ec2
commit 9eefad0ad1
7 changed files with 89 additions and 423 deletions
@@ -0,0 +1,17 @@
--- a/buildconf/base.ini
+++ b/buildconf/base.ini
@@ -1,9 +1,9 @@
[uwsgi]
-xml = auto
-yaml = true
-json = auto
-ssl = auto
-pcre = auto
+xml = false
+yaml = embedded
+json = jansson
+ssl = false
+pcre = false
routing = auto
debug = false
unbit = false
@@ -0,0 +1,19 @@
--- a/uwsgiconfig.py
+++ b/uwsgiconfig.py
@@ -851,11 +851,11 @@ class uConf(object):
self.cflags.append('-DUWSGI_HAS_EXECINFO')
report['execinfo'] = True
- if self.has_include('zlib.h'):
- self.cflags.append('-DUWSGI_ZLIB')
- self.libs.append('-lz')
- self.gcc_list.append('core/zlib')
- report['zlib'] = True
+# if self.has_include('zlib.h'):
+# self.cflags.append('-DUWSGI_ZLIB')
+# self.libs.append('-lz')
+# self.gcc_list.append('core/zlib')
+ report['zlib'] = False
if uwsgi_os == 'OpenBSD':
try:
@@ -0,0 +1,11 @@
--- a/uwsgiconfig.py
+++ b/uwsgiconfig.py
@@ -680,7 +680,7 @@ class uConf(object):
self.include_path += os.environ['UWSGI_INCLUDES'].split(',')
- self.cflags = ['-O2', '-I.', '-Wall', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] + os.environ.get("CFLAGS", "").split() + self.get('cflags','').split()
+ self.cflags = ['-I.', '-Wall', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] + os.environ.get("CFLAGS", "").split() + self.get('cflags','').split()
report['kernel'] = uwsgi_os