Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

When in doubt, tell the truth. -- Mark Twain


rocksolid / Rocksolid Nodes Announce / Disk caching for rslight

SubjectAuthor
* Disk caching for rslightRetro Guy
`* Re: Disk caching for rslightSugarBug
 `- Re: Disk caching for rslightRetro Guy

1
Subject: Disk caching for rslight
From: Retro Guy
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
Date: Fri, 7 Jun 2024 15:22 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Subject: Disk caching for rslight
Date: Fri, 7 Jun 2024 15:22:36 +0000
Organization: Rocksolid Light
Message-ID: <af5949913baeb50dcb8c02e7e7e9f2b3@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3475654"; mail-complaints-to="usenet@i2pn2.org";
posting-account="gg+dDWHMzVrdxGO9Gmt8aqyeWDXqlxfqiuS0jX/WMXY";
User-Agent: Rocksolid Light
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Rslight-Site: $2y$10$aZjvSxnH8QElTgqUmS716uaLHUDZrA0Vn3yukmtKYVqyWDLkPljjm
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

I've added disk caching in addition to memcache support to rslight.
Testing now on www.novabbs.com.

The config file now gives the option to choose between using memcached,
diskcache or disabling caching.

If you are using memcached now, it will be necessary to use the new
config file. memcache.inc.php will be ignored in favor of cache.inc.php,
where you can select caching method and modify settings.

I'm finding that with a ssd, disk caching is faster than memcached. With
a real hd, it may not be a good choice. Also, disk space is "cheaper"
than ram, so you can have a much larger cache before expiring things.

This is still in 'devel', just putting this here in case anyone is
interested.

--
Retro Guy

Subject: Re: Disk caching for rslight
From: SugarBug
Newsgroups: rocksolid.nodes.announce
Organization: Baggy Jeans Mafia (sybershock.com)
Date: Fri, 7 Jun 2024 17:27 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.announce
Subject: Re: Disk caching for rslight
Date: Fri, 7 Jun 2024 17:27:51 -0000
Organization: Baggy Jeans Mafia (sybershock.com)
Message-ID: <e4c172a1ef645692f5403ab91bcfd200$1@sybershock.com>
References: <af5949913baeb50dcb8c02e7e7e9f2b3@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3485322"; mail-complaints-to="usenet@i2pn2.org";
posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM";
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

On Fri, 7 Jun 2024 15:22:36 +0000
Retro Guy <retroguy@novabbs.com> wrote:

> I've added disk caching in addition to memcache support to rslight.
> Testing now on www.novabbs.com.
>
> The config file now gives the option to choose between using memcached,
> diskcache or disabling caching.
>
> If you are using memcached now, it will be necessary to use the new
> config file. memcache.inc.php will be ignored in favor of cache.inc.php,
> where you can select caching method and modify settings.
>
> I'm finding that with a ssd, disk caching is faster than memcached. With
> a real hd, it may not be a good choice. Also, disk space is "cheaper"
> than ram, so you can have a much larger cache before expiring things.
>
> This is still in 'devel', just putting this here in case anyone is
> interested.
>
> --
> Retro Guy

I am running rslight servers that will probably never have more than a dozen or two users with a handful of groups. In my use case such optimizations are unnecessary and the present one more layer to troubleshoot if something breaks. Is there a setting to ignore these new caching features? Are they disabled by default or do I need to explicitly set both types of caching to off?

--
www.sybershock.com | sci.crypt | alt.sources.crypto | alt.lite.bulb

Subject: Re: Disk caching for rslight
From: Retro Guy
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
Date: Fri, 7 Jun 2024 18:57 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Subject: Re: Disk caching for rslight
Date: Fri, 7 Jun 2024 18:57:44 +0000
Organization: Rocksolid Light
Message-ID: <8bbdda61feceb91572210aae76c8dc54@www.novabbs.org>
References: <af5949913baeb50dcb8c02e7e7e9f2b3@www.novabbs.org> <e4c172a1ef645692f5403ab91bcfd200$1@sybershock.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3491749"; mail-complaints-to="usenet@i2pn2.org";
posting-account="gg+dDWHMzVrdxGO9Gmt8aqyeWDXqlxfqiuS0jX/WMXY";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Rslight-Site: $2y$10$OtP4D8M4nOojqrMk8pq/luA08jQ/HSCeSXfVd6jILyhExbeUZhJo.
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
View all headers

SugarBug wrote:

> On Fri, 7 Jun 2024 15:22:36 +0000
> Retro Guy <retroguy@novabbs.com> wrote:

>> I've added disk caching in addition to memcache support to rslight.
>> Testing now on www.novabbs.com.
>>
>> The config file now gives the option to choose between using memcached,
>> diskcache or disabling caching.
>>
>> If you are using memcached now, it will be necessary to use the new
>> config file. memcache.inc.php will be ignored in favor of
>> cache.inc.php,
>> where you can select caching method and modify settings.
>>
>> I'm finding that with a ssd, disk caching is faster than memcached.
>> With
>> a real hd, it may not be a good choice. Also, disk space is "cheaper"
>> than ram, so you can have a much larger cache before expiring things.
>>
>> This is still in 'devel', just putting this here in case anyone is
>> interested.
>>
>> --
>> Retro Guy

> I am running rslight servers that will probably never have more than a
> dozen or two users with a handful of groups. In my use case such
> optimizations are unnecessary and the present one more layer to
> troubleshoot if something breaks. Is there a setting to ignore these
> new
> caching features? Are they disabled by default or do I need to
> explicitly set both types of caching to off?

Caching is disabled by default.

You can verify in $config_dir/cache.inc.php:
$enable_cache = false;

This sets all caching OFF.

To enaable:
$enable_cache = 'memcached'; or
$enable_cache = 'diskcache';

--
Retro Guy

1

rocksolid light 0.9.8
clearnet tor