﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1665	Minimum zone size for limit_req strangely high	xim@…		"Hi,

I'm running nginx on an embedded platform, namely a Tilera Tile-Gx36. The embedded http server is not intended for any heavy lifting, but for API calls that are possibly expensive. I tried using this config:

limit_req_zone 1 zone=global:32k rate=10r/s;

This works on my x86 computer, but not on the Tilera. I checked the zone requirements in the source code, and found this code:

if (size < (ssize_t) (8 * ngx_pagesize)) { ... ""zone \""%V\"" is too small"" ... }

The Tilera has a 64k page size. This limit means I have to allocate at least 512k memory for each zone I want to define, which seems excessive on an embedded system which will run with a very low rate and a very low burst.

Is there any reason why this limit needs to be ""at least 8 pages""?"	defect	closed	minor		nginx-module	1.14.x	wontfix	limit_req page size		Linux hostname 3.10.108+ #1 SMP PREEMPT Thu Oct 18 17:03:12 CEST 2018 tilegx GNU/Linux	nginx version: nginx/1.14.0
