Re: [squid-users] Squid SSL db on ramdisk

2018-02-12 Thread Yuri
m>; > squid-users@lists.squid-cache.org > Subject: Re: [squid-users] Squid SSL db on ramdisk > > Yes, confirmed. > > When I've replaced int m; and int d; to long m; and long d; - works like > charm. > > > 11.02.2018 01:08, Yuri пишет: >> int m; declaration i

Re: [squid-users] Squid SSL db on ramdisk

2018-02-12 Thread Vacheslav
, February 10, 2018 10:57 PM To: Alex Rousskov <rouss...@measurement-factory.com>; squid-users@lists.squid-cache.org Subject: Re: [squid-users] Squid SSL db on ramdisk Yes, confirmed. When I've replaced int m; and int d; to long m; and long d; - works like charm. 11.02.2018 01:08, Yuri пишет: &

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Yuri
Yes, confirmed. When I've replaced int m; and int d; to long m; and long d; - works like charm. 11.02.2018 01:08, Yuri пишет: > int m; declaration inside static bool parseBytesOptionValue(size_t * > bptr, char const * value) ? > > If I set it long, as by as int d, seems ok. > > > 11.02.2018

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Yuri
int m; declaration inside static bool parseBytesOptionValue(size_t * bptr, char const * value) ? If I set it long, as by as int d, seems ok. 11.02.2018 01:04, Alex Rousskov пишет: > On 02/10/2018 12:02 PM, Yuri wrote: >> >> 11.02.2018 00:59, Alex Rousskov пишет: >>> On 02/10/2018 10:03 AM, Yuri

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Alex Rousskov
On 02/10/2018 12:02 PM, Yuri wrote: > > > 11.02.2018 00:59, Alex Rousskov пишет: >> On 02/10/2018 10:03 AM, Yuri wrote: >> >>> What is correct syntax for -M option? >> The correct syntax is, roughly, >> >> -M [bytes|KB|MB|GB] > Exactly with space between integer and units? Without anything

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Yuri
11.02.2018 00:59, Alex Rousskov пишет: > On 02/10/2018 10:03 AM, Yuri wrote: > >> What is correct syntax for -M option? > The correct syntax is, roughly, > > -M [bytes|KB|MB|GB] Exactly with space between integer and units? > > with "bytes" as the default unit. > > However, you found a bug in

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Alex Rousskov
On 02/10/2018 10:03 AM, Yuri wrote: > What is correct syntax for -M option? The correct syntax is, roughly, -M [bytes|KB|MB|GB] with "bytes" as the default unit. However, you found a bug in the parsing code: The helper mishandles values exceeding 2147483647 bytes (on most platforms) due to

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Yuri
One more question. What is correct syntax for -M option? I'm just in doubt. Helper eats -M 5MB, but not -M 1024MB, however eats -M 1 GB. root @ lemanruss /patch/tmp # /usr/local/squid/libexec/security_file_certgen -s /ramdisk1/ssl_db -M 2GB /usr/local/squid/libexec/security_file_certgen: Error

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Yuri
10.02.2018 22:36, Alex Rousskov пишет: > On 02/10/2018 09:23 AM, Yuri wrote: > >> I can set -M in according FS size, using for store SSL DB, correct? > Yes, -M limits the sum of sizes of all (serialized) certificates stored > in the helper database. The helper tries to account for the filesystem

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Alex Rousskov
On 02/10/2018 09:23 AM, Yuri wrote: > I can set -M in according FS size, using for store SSL DB, correct? Yes, -M limits the sum of sizes of all (serialized) certificates stored in the helper database. The helper tries to account for the filesystem block size, but I doubt its calculations are

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Yuri
10.02.2018 22:18, Alex Rousskov пишет: > On 02/10/2018 06:43 AM, Yuri wrote: > >> security_file_certgen uses memory cache to buffer slow >> disk IO for certificates DB. > It does not. Ahhaaa, I just misunderstanding options > > >> If we're put cert DB onto ramdisk (in fact, >> in

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Alex Rousskov
On 02/10/2018 06:43 AM, Yuri wrote: > security_file_certgen uses memory cache to buffer slow > disk IO for certificates DB. It does not. > If we're put cert DB onto ramdisk (in fact, > in RAM), so we're can easy reduce helper -M value. security_file_certgen -M is the helper database size, not

Re: [squid-users] Squid SSL db on ramdisk

2018-02-10 Thread Yuri
10.02.2018 13:30, Amos Jeffries пишет: > On 10/02/18 12:55, Yuri wrote: >> Amos, >> >> how do you think - if I'll put SSL db (usually places in >> /var/lib/ssl_db) on ramdisk, does this give some gain for bump performance? >> > I expect so, but do not use bumping myself so cannot say for

Re: [squid-users] Squid SSL db on ramdisk

2018-02-09 Thread Amos Jeffries
On 10/02/18 12:55, Yuri wrote: > Amos, > > how do you think - if I'll put SSL db (usually places in > /var/lib/ssl_db) on ramdisk, does this give some gain for bump performance? > I expect so, but do not use bumping myself so cannot say for certain. > How reasonable to do that? > > Also, I

[squid-users] Squid SSL db on ramdisk

2018-02-09 Thread Yuri
Amos, how do you think - if I'll put SSL db (usually places in /var/lib/ssl_db) on ramdisk, does this give some gain for bump performance? How reasonable to do that? Also, I think, doing that,  I can reduce in memory cache size for security_file_certgen helper. How do you think? --