Re: memcached-windows installation issue

2022-11-28 Thread Bert 126
Hi @jefty,

Excellent initiative to have ported Memcached natively on Windows! Many 
thanks. 

I have tested it on a DEV machine and it is really faster than the v1.4.4 
which was previously available everywhere. 

However, I can't get your version to run on our Windows server as a service 
(Windows Server 16 Standard). 

memcached -d install does not work and no error message, no result. 
Do you have any idea where to look for?

Thank you.
Bert


On Friday, August 12, 2022 at 6:03:27 PM UTC+2 Jefty Negapatan wrote:

> Hi,
>
> The latest pre-built binaries can be found here: 
> https://github.com/jefyt/memcached-windows/releases/tag/1.6.7_mingw
> Unfortunately, it's already outdated and I haven't had the time to merge 
> the latest upstream, v1.6.16 as of this time.
>
> For some docs like how to build which is also outdated (e.g. still refers 
> to bintray for static deps), you can refer to 
> https://github.com/jefyt/memcached-windows/wiki.
> You should still be able to build it without using static deps, build all 
> from source including deps.
>
> Hope this helps.
>
> Regards,
> Jefty
>
> On Friday, August 12, 2022 at 5:40:23 PM UTC+2 kumar...@gmail.com wrote:
>
>> Hi All,
>>
>> Is there any updates on this.
>> How can we setup the Memcached for working with C++ over windows.
>> Any blog or any reference will be appreciated.
>>
>> Thanks and Regards
>> Voman Kumar
>>
>>
>> On Monday, July 25, 2022 at 3:03:07 AM UTC+5:30 lkx...@gmail.com wrote:
>>
>>> Hi guys
>>> I am a newbie to Memcached.
>>> I want to use https://github.com/jefyt/memcached-windows since this 
>>> seems the easiest way to install Memcached in Windows OS without too many 
>>> other requirements. My end goal is to use Memcached with my other C++-based 
>>> Windows OS application developments.
>>> The readme file indicates there should be an exe that existed in the 
>>> codebase, but there is no exe can be found. Did anyone use 
>>> memcached-windows before? I am assuming maybe i need to build exe myself 
>>> but there is no documentation can be found in memcahed-windows at all. 
>>> please help~
>>>
>>> Thanks
>>> K
>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/e8a5cf48-bc86-4da4-a290-8c99f18f2e61n%40googlegroups.com.


Re: "Out of memory during read" errors instead of key eviction

2022-11-28 Thread 'Danny Kopping' via memcached
To add another datapoint here, we at Grafana Labs use memcached extensively 
in our cloud and this fix made a massive impact on our cache effectiveness:
https://user-images.githubusercontent.com/373762/204228886-7c5a759a-927c-46fb-ae55-3e0b4056ebae.png

Thank you very much to you both for the investigation and bugfix!

On Saturday, August 27, 2022 at 8:53:47 AM UTC+2 Dormando wrote:

> Thanks for taking the time to evaluate! It helps my confidence level with
> the fix.
>
> You caught me at a good time :) Been really behind with fixes for quite a
> while and only catching up this week. I've looked at this a few times and
> didn't see the easy fix before...
>
> I think earlier versions of the item chunking code were more fragile and I
> didn't revisit it after the cleanup work. In this case each chunk
> remembers its original slab class, so having the final chunk be from an
> unintended class doesn't break anything. Otherwise freeing the chunks
> would be impossible if I had to recalculate their original slab class from
> the chunk size.
>
> So now it'll use too much memory in some cases, and lowering slab chunk
> max would ease that a bit... so maybe soon will finally be a good time to
> lower the default chunk max a little to at least 128k or 256k.
>
> -Dormando
>
> On Fri, 26 Aug 2022, Hayden wrote:
>
> > I didn't see the docker files in the repo that could build the docker 
> image, and when I tried cloning the git repo and doing a docker build I 
> encountered
> > errors that I think were related to the web proxy on my work network. I 
> was able to grab the release tarball and the bitnami docker file, do a 
> little
> > surgery to work around my proxy issue, and build a 1.6.17 docker image 
> though.
> > I ran my application against the new version and it ran for ~2hr without 
> any errors (it previously wouldn't run more than 30s or so before 
> encountering
> > blocks of the OOM during read errors). I also made a little test loop 
> that just hammered the instance with similar sized writes (1-2MB) as fast 
> as it
> > could and let it run a few hours, and it didn't have a single blip. That 
> encompassed a couple million evictions. I'm pretty comfortable saying the 
> issue
> > is fixed, at least for the kind of use I had in mind.
> >
> > I added a comment to the issue on GitHub to the same effect.
> >
> > I'm impressed by the quick turnaround, BTW. ;-)
> >
> > H
> >
> > On Friday, August 26, 2022 at 5:54:26 PM UTC-7 Dormando wrote:
> > So I tested this a bit more and released it in 1.6.17; I think bitnami
> > should pick it up soonish. if not I'll try to figure out docker this
> > weekend if you still need it.
> >
> > I'm not 100% sure it'll fix your use case but it does fix some things I
> > can test and it didn't seem like a regression. would be nice to validate
> > still.
> >
> > On Fri, 26 Aug 2022, dormando wrote:
> >
> > > You can't build docker images or compile binaries? there's a
> > > docker-compose.yml in the repo already if that helps.
> > >
> > > If not I can try but I don't spend a lot of time with docker directly.
> > >
> > > On Fri, 26 Aug 2022, Hayden wrote:
> > >
> > > > I'd be happy to help validate the fix, but I can't do it until the 
> weekend, and I don't have a ready way to build an updated image. Any
> > chance you could
> > > > create a docker image with the fix that I could grab from somewhere?
> > > >
> > > > On Friday, August 26, 2022 at 10:38:54 AM UTC-7 Dormando wrote:
> > > > I have an opportunity to put this fix into a release today if anyone 
> wants
> > > > to help validate :)
> > > >
> > > > On Thu, 25 Aug 2022, dormando wrote:
> > > >
> > > > > Took another quick look...
> > > > >
> > > > > Think there's an easy patch that might work:
> > > > > https://github.com/memcached/memcached/pull/924
> > > > >
> > > > > If you wouldn't mind helping validate? An external validator would 
> help me
> > > > > get it in time for the next release :)
> > > > >
> > > > > Thanks,
> > > > > -Dormando
> > > > >
> > > > > On Wed, 24 Aug 2022, dormando wrote:
> > > > >
> > > > > > Hey,
> > > > > >
> > > > > > Thanks for the info. Yes; this generally confirms the issue. I 
> see some of
> > > > > > your higher slab classes with "free_chunks 0", so if you're 
> setting data
> > > > > > that requires these chunks it could error out. The "stats items" 
> confirms
> > > > > > this since there are no actual items in those lower slab classes.
> > > > > >
> > > > > > You're certainly right a workaround of making your items < 512k 
> would also
> > > > > > work; but in general if I have features it'd be nice if they 
> worked well
> > > > > > :) Please open an issue so we can improve things!
> > > > > >
> > > > > > I intended to lower the slab_chunk_max default from 512k to much 
> lower, as
> > > > > > that actually raises the memory efficiency by a bit (less gap at 
> the
> > > > > > higher classes). That may help here. The system should also try 
> ejecting
> > > > > > items from the