Re: error on make test

2010-03-18 Thread Trond Norbye
On 18. mars 2010, at 17.09, hejsan wrote: > Failed to connect socket: Connection timed out > testapp: testapp.c:1722: test_issue_101: Assertion `fds[ii] > 0' > failed. > make: *** [test] Aborted > > > What is failing here? A more desciptive error message would really > help. > It failed to co

Building development builds of memcached on Windows

2010-03-30 Thread Trond Norbye
Hi, I'm really excited to tell you all that I've just released a bunch of changesets that allows you to build the latest development builds of the engine branch on Microsoft Windows. I wrote up a small blog post to help people get started: http://trondn.blogspot.com/2010/03/building-memcached-w

Re: A few ideas of engine framework

2010-04-02 Thread Trond Norbye
I'm currently up in the mountains at our cabin without my computer. I'll look at the patches tomorrow when I get back home. Trond Sent from my iPhone On 2. apr. 2010, at 07.31, KaiGai Kohei wrote: (2010/04/02 11:29), Dustin Sallings wrote: Can you submit this as a series of independent

Re: A few ideas of engine framework

2010-04-04 Thread Trond Norbye
On 2. apr. 2010, at 07.31, KaiGai Kohei wrote: > (2010/04/02 11:29), Dustin Sallings wrote: >> Can you submit this as a series of independent changes, or perhaps a >> just put up a repo somewhere? >> >> We appreciate the work, but we'll need to break it up into consumable >> chunks. > > http:

Re: A few ideas of engine framework

2010-04-07 Thread Trond Norbye
On 4. apr. 2010, at 17.37, KaiGai Kohei wrote: > >>> $ git diff origin/reworks_1 origin/reworks_2 >>> -> It adds item_get_nkey() and item_get_ndata() engine APIs, to inject >>>security attribute as a part of values by intermediation modules >>>(such as bucket or selinux). >>> >> >> Wha

Re: A few ideas of engine framework

2010-04-09 Thread Trond Norbye
Sorry for being silent for a bit, but I was trying to think this through. I've refactored the code now so that it should allow you to do what you want (but in a slightly different way). Instead of providing functions to query the individual parts of the item, the core calls a single function to

Re: A few ideas of engine framework

2010-04-12 Thread Trond Norbye
On 11. apr. 2010, at 17.56, KaiGai Kohei wrote: > > It seems to me the new get_item_info() interface intends to contain various > kind of properties more than bare threes (value, cas and expired time), > because we can easily expand the number of 'struct iovec value[]' in the > new item_info. >

Re: A few ideas of engine framework

2010-04-12 Thread Trond Norbye
On 12. apr. 2010, at 02.18, KaiGai Kohei wrote: > Are you saying the data fragments are not necessary to be placed on the > continuous region in physically? > If so, it seems to me allocate() method needs to be revised to take an > arguments to indicate the number of fragments (with their lengths

Re: A few ideas of engine framework

2010-04-12 Thread Trond Norbye
On 1. apr. 2010, at 22.31, KaiGai Kohei wrote: > > $ git diff origin/reworks_2 origin/reworks_3 > -> It adds the 'features' field at engine_interface structure, to >inform what features are supported by the loaded module. I couldn't see this branch anymore, but I pushed a proposal for this

Re: A few ideas of engine framework

2010-04-13 Thread Trond Norbye
On 13. apr. 2010, at 01.35, KaiGai Kohei wrote: > >> I changed the signature for the existing "get_info" call to allow the engine >> to return an arbitrary number of features it support. >> If I remember correctly from your proposal you proposed this as a bitmask? >> Since this isn't going to be

Re: A few ideas of engine framework

2010-04-13 Thread Trond Norbye
On 13. apr. 2010, at 01.17, KaiGai Kohei wrote: > > Rather than the server API to inform maximum number of fragments, > it seems to me the get_item_info() should provides total number of > fragments in the specified item, and the memcached core calls engine > api to set up an iovector of the spec

Re: A few ideas of engine framework

2010-04-13 Thread Trond Norbye
On 13. apr. 2010, at 17.54, KaiGai Kohei wrote: > > Example) > typedef enum { >ENGINE_FEATURE_CAS = 0, /**< has compare-and-set operation > */ >ENGINE_FEATURE_PERSISTENT_STORAGE, /**< has persistent storage > support */ >ENGINE_FEATURE_SECONDARY_ENGINE,

Re: building a statically linked version of memcached

2010-04-16 Thread Trond Norbye
On 16. apr. 2010, at 06.27, Harry Duin wrote: > I want to build a statically linked version of memcached, but am not > able to accomplish this. I got the dynamically linked version to build > right away. To get the static build, I did this: > > 1. configure --with-libevent=/data/webserver_pkgs/t

Re: building a statically linked version of memcached

2010-04-16 Thread Trond Norbye
' > /home/hduin/ots/memcached-1.4.5/thread.c:202: undefined reference to > `event_base_set' > /home/hduin/ots/memcached-1.4.5/thread.c:204: undefined reference to > `event_add' > memcached-thread.o: In function `worker_libevent': > /home/hduin/ots/memcached-1

Re: building a statically linked version of memcached

2010-04-19 Thread Trond Norbye
unless you tell it to use a static one. Cheers, Trond > The configure fails on this: LIBS="-lrt" LDFLAGS="-static" ./ > configure --with-libevent=/home/hduin/ots/libevent-1.4.13-build > > Oh well, I got the static build! > > Harry > > On Apr 16,

Re: memcached limitation

2010-04-19 Thread Trond Norbye
On 19. apr. 2010, at 13.44, Darvin Denmian wrote: > Hello, > > I'm using memcached just to centralize my php session, for a while,but > when I look this graph I realy don't understand why memcached > stabilized at ~378MB. You should try to telnet to your memcached server on port 11211 and type

Re: Global Lock When Getting Stats?

2010-05-13 Thread Trond Norbye
On 13. mai 2010, at 22.46, Tim Sneed wrote: > I was watching a Memcached video spoken by John Adams when I heard > something that made me curious. When one gets stats from memcached, > does it really perform a global lock? Does anyone have any good test > cases on what sort of impact there is wi

Re: Sample C code for beginner

2010-05-19 Thread Trond Norbye
Did you look at the documentation for the functions? Trond Sent from my iPhone On 19. mai 2010, at 15.38, ram wrote: The problem is I find all these offset,initial etc very cryptic. Can I set them all to 0 On May 18, 3:29 am, Dustin wrote: memcached_return_t memcached_increment_wi

Re: Get Null object from Memcached

2010-05-31 Thread Trond Norbye
On 31. mai 2010, at 15.07, Adeel Nasim wrote: > Please let me know how to on debug mode? i am running memcached client in > verbose mode "memcached -VV " and it doesn't show any error. That is the server, not the client. Trond

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Trond Norbye
On 11. juli 2010, at 22.49, Snehal Shinde wrote: > In my PHP code I am using the correct port number as shown below: > > $mResult = $this->cache->connect($my_ip,"11234"); That's different from 12345. Trond > if($mResult===false) { > $t

Re: [PATCH] to make memcached drop privileges completely when running as root

2010-07-20 Thread Trond Norbye
Why do you remove the ability for the user to specify the username it should run as, and instead hardcode it to run as _memcached ?? In addition this patch require /var/empty to exists, and I know of a number of platforms that don't have a /var/empty directory... Just my 0.5NOK Trond On 20.

Re: memcached with access controls

2010-07-22 Thread Trond Norbye
On 07/22/10 02:38 AM, KaiGai Kohei wrote: > BTW, I have noticed a few symbols are not available unexpectedly when > I've been under development. > > 1. create_instance() of the default_engine.c is not available, even if >--enable-default-engine was provided. > 2. safe_strtoull() of the util.c i

Re: Version 0.43 Release for libmemcached

2010-07-29 Thread Trond Norbye
On 29. juli 2010, at 18.42, Brian Aker wrote: > * Prelimanary support for Windows. I wrote a small blog post at http://trondn.blogspot.com/2010/07/libmemcached-on-win32.html for those of you who want to try out the Windows version. Cheers, Trond

Re: listen to multiple IPs(clients)

2010-09-16 Thread Trond Norbye
On 16. sep. 2010, at 20.44, ligerdave wrote: > Folks, > > I would like to set my memcache instance to listen to only a list of > given IPs. > > I know you can specify an IP/interface by using -l 127.0.0.1. Is it > possible to do something like this: -l ip1,ip2,ip3 > > I was trying to find its

Re: listen to multiple IPs(clients)

2010-09-16 Thread Trond Norbye
On 17. sep. 2010, at 00.57, ligerdave wrote: > so is it possible to use -l ip1,ip2,. ? > > No, you asked for where in the code it used the -l argument, and memcached does currently not tokenize the argument to -l. Cheers, Trond

Re: listen to multiple IPs(clients)

2010-09-17 Thread Trond Norbye
ndled. It should be fairly simple to modify the code to tokenize the string and bind to each of the ip's you specify. Trond > memcahed newbie, > Manoher T > > On Fri, Sep 17, 2010 at 10:27 AM, Trond Norbye wrote: > > On 17. sep. 2010, at 00.57, ligerdave wrote: > >

Re: compiling memcache without threads on multi-core system

2010-09-22 Thread Trond Norbye
The last thread is the thread running the clock and accepting new connections. Cheers Trond Sent from my iPhone On 22. sep. 2010, at 16:50, Paul Lindner wrote: > memcache only compiles in a threaded mode these days. The docs are out of > date. > > The 5th thread you see is probably a super

Re: bytes_written growing fast but not cmd_set

2010-09-29 Thread Trond Norbye
On 29. sep. 2010, at 19.10, Antoine wrote: > Hi, > > I have a memcached server in a production environment that is showing > a strange behavior : > bytes_written grows fast (~1.2Mo per second), but the number of > cmd_set does not change! > > How is that possible? > A lot get commands? Cheer

Re: how do you find out which version of memcached you have installed?

2010-10-18 Thread Trond Norbye
Telnet localhost 11211 and type: version Trond On 18 Okt, 16:39, Ilan Berkner wrote: >

Re: Enhancement of memcached

2010-10-18 Thread Trond Norbye
You can currently only specify only one interface address with one TCP port and one UDP port (or you can specify a unix socket to listen to). Cheers, Trond

Re: 1MB limit on object size

2010-11-10 Thread Trond Norbye
On 10. nov. 2010, at 16.21, Abhilash wrote: > Hi Dustin, thanks for the quick response. Please see my comments > below. > >> You've really gone out of your way to run it as root. Why is it so >> important to you to do that? I think it's a rather awful idea. > > Can you please suggest the best

Re: Test failing using Sun Studio 11 compiler on 5.10 sparc

2010-11-10 Thread Trond Norbye
On 2. nov. 2010, at 10.36, nooby wrote: > Hi, > > I got memcached 1.4.5 to compile however the following test failed: > > Assertion failed: response->message.header.response.status == status, > file testapp.c, line 823 > *** Signal 6 - core dumped > make: Fatal error: Command failed for target

Re: Missing Slab ID in item stats ?

2010-11-16 Thread Trond Norbye
On 16. nov. 2010, at 12.42, kiran- wrote: > Hi, > > I'm not sure if I'm overlooking anything but I think the item stats > seem to be missing for one of the slab IDs. > > Here are the stats ( Item Stats are missing for slab 16) stats items will skip the class if the slab class doesn't contain a

Re: Invalid configuration when doing configure

2010-11-16 Thread Trond Norbye
On 15. nov. 2010, at 01.56, Abioy Sun wrote: > maybe you need to have libevent preinstall? > > 2010/11/15 Steven Veneralle > cool got it but I get this error > memcached: error while loading shared libraries: libevent-1.4.so.2: cannot > open shared object file: No such file or directory > and

Re: Issue 175 in memcached: Memcached installation problems

2010-12-03 Thread Trond Norbye
There is an option to configure you may use to disable the generation of that documentation. I don't remember exactly, but I guesss it's something like --disable-docs. Running configure --help should tell you... Cheers, Trond On 4. des. 2010, at 08.06, memcac...@googlecode.com wrote: > > Com

Re: REMOVE ME

2010-12-07 Thread Trond Norbye
I got an error when I executed the command.. 'No such file' Should I run the command as root? Trond ;) Sent from my iPhone On 8. des. 2010, at 07:31, Eric Lambert wrote: > On 12/7/10 9:59 PM, pravesh suyal wrote: > > rm -rf pravesh > > http://groups.google.com/support/bin/answer.py?hl=en&

Re: Where do I find the invalid characters for a memcached key?

2011-02-10 Thread Trond Norbye
On 10. feb. 2011, at 21.18, dormando wrote: >> Or wiki -> protocol/commands (two clicks!) though the key stuff should >> be >> repeated at the top there (just fixed that). Probably should be repeated >> somewhere else too, which we'll improve next time. >> >> >> The wiki says th

Re: [memcached] - fix build

2011-02-21 Thread Trond Norbye
On 16. feb. 2011, at 18.06, Paul Lindner wrote: > Thanks! I was going to fix this today but you beat me to it.. > > ccing memcached in hopes that it will get incorporated upstream... > I tried to apply the patch today, but it failed (probably due to my poor removal of "> ". Anyway. I contact

Re: Multiport support

2011-02-28 Thread Trond Norbye
On 28. feb. 2011, at 15.32, Jaime Medrano Navarro wrote: > Hi. > > At tuenti, we have found a performance degradation on UDP that can be > solved using a range of ports instead of a single one. > > More info on the problem and the solution can be found here: > http://blog.tuenti.com/dev/using

Re: Multiport support

2011-03-01 Thread Trond Norbye
On 1. mars 2011, at 00.00, Adam Lee wrote: > On Feb 28, 2011 5:04 PM, "Trond Norbye" wrote: > > I don't have any huge objections to this patch, but I'd rather change the > > logic so instead of specifying the number of ports and have them in a range &g

Re: Multiport support

2011-03-01 Thread Trond Norbye
On 1. mars 2011, at 10.42, Jaime Medrano Navarro wrote: > > That syntax is ok for me, but you're missing the most important part > of my patch: change the mapping between udp sockets and threads. > Sorry, I forgot that part ;) I'll add it. Cheers, Trond > If only one port is provided, we s

Re: Multiport support

2011-03-01 Thread Trond Norbye
On 1. mars 2011, at 15.30, Guille -bisho- wrote: > As Jaime pointed out, the main purpose of the patch is not make more > flexible how memcache listen on ports, but when using udp be able to > use 32 consecutive ports with one thread per port listening to get > huge improvements in performance, l

Re: Update Binary Spec to include value-type of Incr/Decr value

2011-03-04 Thread Trond Norbye
On 3. mars 2011, at 23.10, Dustin wrote: > > On Mar 2, 9:13 pm, Jason Sirota wrote: >> In reading the binary spec >> documenthttp://code.google.com/p/memcached/wiki/BinaryProtocolRevampedit >> isn't >> clear that the value to be incremented/decremented must be the char >> representation of a

Re: Update Binary Spec to include value-type of Incr/Decr value

2011-03-08 Thread Trond Norbye
On 7. mars 2011, at 17.45, John David Duncan wrote: > Here's another odd point on INCR/DECR ... > > The default engine will not decrement an item to less than zero. > The "binary decr" test in memcapable also asserts that you can't do that. > There's a comment: > > /* decr 0 should not wrap

Re: libmemcache linking error in application compilation

2011-03-11 Thread Trond Norbye
You should try building a 32 bit libmemcached by adding --disable-64bit to configure (and remove the amd64 part from -L when you try to link your library) Cheers, Trond On 11. mars 2011, at 19.49, Maddy wrote: > Hi, > I have a requirement to maintain master master replication over 4 > nodes an

Re: libmemcache linking error in application compilation

2011-03-12 Thread Trond Norbye
ectory _without_ amd64 so you can have both installed). Solaris allows you to run both 32 and 64 bit processes on a 64 bit OS, so you can choose whatever you want. You could alternatively build your own application as a 64 bit application as well. Cheers, Trond > Regards, > Rahul

Re: libmemcache linking error in application compilation

2011-03-12 Thread Trond Norbye
r@Solaris25 libmemcached-0.47]$ > > > You said > "You could alternatively build your own application as a 64 bit > application as well. " > > How can i build my application as a 64 bit > > Regards, > Rahul > > > On Mar 12, 10:56 pm, Trond Norbye

Re: libmemcache linking error in application compilation

2011-03-12 Thread Trond Norbye
On 12. mars 2011, at 11.00, Maddy wrote: > Yea i am doing that. I also tried by taking fresh source. Still > getting same error. > Looks like there is something wrong with the flags to dtrace.. try add --disable-dtrace Trond > Please suggest > > On Mar 12, 11:37 pm, T

Re: Query Lifetime in Memcached 1.2.2

2011-03-14 Thread Trond Norbye
btw. memcached 1.2.2 is awfully old... Cheers, Trond On 14. mars 2011, at 22.24, Stephen wrote: > Thanks Brian, that makes much more sense to me. I was concerned that > my queries were still being executed all the time to be dumped into > Memcached. I've got a basic class set up to handle my ac

Re: Implementation of CHECK command for memcached

2011-03-18 Thread Trond Norbye
On 18. mars 2011, at 13.41, Adam Lee wrote: > Is it also your intention to have CHECK with an expiration act as a sort of > touch command? > I pushed a binary TOUCH command a while back for the upcoming engine branch (in addition to a "get and touch"). The touch command is used to update the

Re: Compile error with libmemcached

2011-03-21 Thread Trond Norbye
On 21. mars 2011, at 06.21, TV Ganesh wrote: > Hi, >I am having a basic error when trying to use the gcc compiler to > compile the code user the tests folder. I get the error > error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ > token. The offending code is the 'const' keyword.

Re: Build errors on engine-pu

2011-03-27 Thread Trond Norbye
I pushed the following: commit 7abbc666e9625ac39305e2e801e55ca195634f36 Author: Dustin Sallings Date: Sun Mar 27 12:51:08 2011 -0700 Supress fwrite wur in mcstat. mcstat pulls statistics from memcached and writes them to stdout. Recent versions of glibc have a warn_unused_resu

Re: [Libmemcached-discuss] membase support ? (undocumented protocol changes?)

2011-03-29 Thread Trond Norbye
On 29. mars 2011, at 19.54, Brian Aker wrote: > One thing that I am noticing in the memcached 1.6 tree is that there are > some protocol additions that have not been documented, and there are zero > emails to any of the mailing list about them. Personally I think it is bad > business to see t

Re: What's New in Memcached? (part one)

2011-04-11 Thread Trond Norbye
On 11. apr. 2011, at 17.03, Henrik Schröder wrote: > Awesome! Quick question: How are you compiling on windows? Mingw? Or some > other solution? > > We're using mingw right now... The problem is that we don't have another compiler with C99 support on windows for the moment (or at least none

What's new in memcached (part 2)

2011-04-11 Thread Trond Norbye
What's new in memcached === (part two - new feature proposals) Table of Contents = 1 Protocol 1.1 Virtual buckets! 1.2 TAP 1.3 New commands 1.3.1 VERBOSITY 1.3.2 TOUCH, GAT and GATQ

Re: What's new in memcached (part 2)

2011-04-12 Thread Trond Norbye
-bake oven form beta release. Passes tests on a bunch of platforms, > but possibly not OpenBSD. > I've fixed that bug. See: https://github.com/memcached/memcached/commit/cc3941084188195fc8b43fcdc05cec3dab5a4bd4 Cheers, Trond > Make evaluating! Give major feedback. > > -Dorma

Re: What's New in Memcached? (part one)

2011-04-12 Thread Trond Norbye
On 12. apr. 2011, at 11.24, Henrik Schröder wrote: > On Mon, Apr 11, 2011 at 17:26, Trond Norbye wrote: > > We're using mingw right now... The problem is that we don't have another > compiler with C99 support on windows for the moment (or at least none that > I&#x

Re: What's New in Memcached? (part one)

2011-04-12 Thread Trond Norbye
On 12. apr. 2011, at 14.34, Henrik Schröder wrote: > Both are 1.4.4, but the top one includes a libgcc dll and a mingw dll, and > the bottom one doesn't. And since the bottom one doesn't, I assumed it wasn't > built using mingw, but some other method that still links in the pthread dll. > But

Re: New to Memcached - getting ERROR when trying to use nc

2011-04-12 Thread Trond Norbye
On 12. apr. 2011, at 17.19, OhadH wrote: > I have installed memcached on Ubuntu machine using : > > sudo apt-get install memcached > > > I ran it using: > > > memcached -v -u root & Why do you need to run memcached as root?? Trond

Re: What's new in memcached (part 2)

2011-04-12 Thread Trond Norbye
.com/memcached/memcached/commit/cc3941084188195fc8b43fcdc05cec3dab5a4bd4 >> >> Cheers, >> >> Trond >> >> >>> Make evaluating! Give major feedback. >>> >>> -Dormando >>> >>> On Mon, 11 Apr 2011, Trond Norbye wro

Re: Memcached Request Log

2011-04-14 Thread Trond Norbye
Can't you monitor the stats to determine that? There is a stat for get hits and get misses (and for the other commands)... Or do you need the actual key in the request? You'll get more info from the memcached server if you bump it's verbosity (add a -v or two), but it will also pri

Re: Ynt: Re:Ynt: Re: Can not delete an existing value

2011-04-29 Thread Trond Norbye
On 28. apr. 2011, at 10.00, ilkinulas wrote: > We are experiencing this strange problem on Solaris 10 (sparc) platform. > > cat /etc/release > Solaris 10 10/09 s10s_u8wos_08a SPARC >Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. >

Re: can I get a reality check?

2011-05-15 Thread Trond Norbye
On 15. mai 2011, at 11.50, Mark wrote: > I'm having problems after installing memcached and reading the "ascii > protocol" documentation so I have to ask here can someone tell me > what's wrong? > > # telnet localhost 11211 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^

Re: can I get a reality check?

2011-05-15 Thread Trond Norbye
https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L127 then after describing all of the parameters you'll get the: https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L184 Trond

Re: lock-free counter updates

2011-05-24 Thread Trond Norbye
I remember discussing this with Dustin back when I added the threadlocal counters. Back then I suggested that we would just do dirty reads of the counters used by the other threads, but we decided that we could might as well do it the "safe way" and fix it if it ever popped up with lock contenti

Re: information on -b option to set the backlog limit

2011-05-25 Thread Trond Norbye
On 25. mai 2011, at 08.40, ktechie wrote: > Thanks for the reply. > > Sorry that I used the connection and request interchangeably. > > Let me put the questions as : > > If I keep max connection as 2048 and the backlog queue limit as 2048 > then how does this differ say in performance from set

Re: -r option maximeize core file limit

2011-05-25 Thread Trond Norbye
a core file is used to track down bugs in your program. You should check out the man page for core (man core) Trond On 25. mai 2011, at 08.41, ktechie wrote: > Can I get some help on this parameter > > On May 22, 10:09 am, ktechie wrote: >> One of the memcached configuration parameters is >

Re: Idle connection removal

2011-06-02 Thread Trond Norbye
There is no such logic in the server today. Cheers, TrondTrond On Jun 2, 2011 10:03 PM, "Prasad" wrote: > Hello, > > I was wondering if there is a memcached server side option that allows > the server to check and remove client connections that have been idle > for a certain period. > > We need

Re: memcached debugging/profiling

2011-06-03 Thread Trond Norbye
On 3. juni 2011, at 15.07, Maksym Melnychok wrote: > Hi, > > are there any good tools to debug/profile memcached production setup without > interrupting it? > > i'm specifically interested in top key misses and slow queries > > thanks in advance! You may use dtrace if you're running on Solar

Re: problem with compiling 1.6 beta on Windows

2011-06-28 Thread Trond Norbye
From a clean repo with: make -f win32/Makefile.mingw Cheers, Trond On 28. juni 2011, at 09.58, Rafal Likus wrote: > Ok, I downloaded latest MSysGit, and MinGW, both gives the same > result. > I downloaded official beta and latest snapshot of Memcached. > Copied m4/version.m4 from official bet

Re: memcached memory problem

2011-07-20 Thread Trond Norbye
On 20. juli 2011, at 11.02, tony Cui wrote: > Hi Everyone, >I had a problem. It started like this.I modified the > memcached source, when memcached runs out of memory, it tries to remove some > old items to make more space, > I found the method named do_slabs_alloc in t

Re: Tuning memcached on ubuntu x86_64 (2.6.35)

2011-07-21 Thread Trond Norbye
On 21. juli 2011, at 19.16, dormando wrote: >> Is it normal to have a 16 percent virtual memory overhead in memcached >> on x86_64 linux? memcached STAT bytes is reporting 3219 megabytes of >> data, but virtual memory is 16 percent higher at 3834. Resident memory >> is 14 percent higher at 3763

Re: memcached

2011-07-24 Thread Trond Norbye
hed is just not used > properly. Are there other stats/parameters that should be consulted to > get an idea about the cache hit rate? > > Moreover, the memcached version is 1.2.2 which I understood is buggy. > How serious is it and should I trust the output of stats? > > Thank you, > Andrej -- Trond Norbye

Re: memcached

2011-07-25 Thread Trond Norbye
t;> *) If you're not having evictions, do you use timeouts on your objects? >> Could it be that your objects time out before you try to access them again? >> > > No clue. How can I find out without bothering anybody? > > What about just grabbing a few network packets to look at the traffic you're sending to your memcached server and look from there? It would be a lot easier for you to figure out if you knew what they used the memcached cluster for ;) It could be that they don't store and fetch the same kinds of objects ;) -- Trond Norbye

Re: Solaris 10 - not thread safe

2011-07-25 Thread Trond Norbye
You should use a more recent version of gcc (or use Solaris studio which is free) I don't think anyone wants to add extra code to support an ancient version of gcc ... Trond On Jul 25, 2011 8:00 PM, "Marcin Ochab" wrote: > Hello, > > I was compiling memcache 1.4.6 on Solaris 10 ( SunOS grom 5.10

Re: Can anyone tell me the benifit of libmemcached pool?

2011-07-29 Thread Trond Norbye
You would use a pool of libmemcached instances in your multithreaded application to avoid initiating, connect, disconnect and destroy each time one of the threads wants to send a request to the memcached cluster. Instead you can get an instance from the pool, use it, and put it back in the pool for

Re: Can anyone tell me the benifit of libmemcached pool?

2011-08-11 Thread Trond Norbye
s as well, since it is a > pretty easy API to use for just caching the connection between page calls > (i.e. and application running in Apache) > > On Jul 29, 2011, at 12:45 PM, Trond Norbye wrote: > > > You would use a pool of libmemcached instances in your multithreaded >

Re: Can anyone tell me the benifit of libmemcached pool?

2011-08-11 Thread Trond Norbye
grab instance from the pool call a libemcached function push it back to the pool } Trond > Thank you for your reply. > > > --- *11年8月11日,周四, Trond Norbye * 写道: > > > 发件人: Trond Norbye > 主题: Re: Can anyone tell me the benifit of libmemcached pool? > 收件

Re: Can anyone tell me the benifit of libmemcached pool?

2011-08-14 Thread Trond Norbye
I restrict some fixed ips to > access the memcached servers except using iptables? Because the iptables > command needs root permission to execute. Thank you for your reply. > This is outside the scope for this mailing list... Trond > --- *11年8月12日,周五, Trond Norbye * 写道: > > &g

Re: install memcached with libevent?

2011-08-16 Thread Trond Norbye
Who told you that? There is nothing stopping you from doing so, but a better question would be: why do you want to do that ;) Trond On Tuesday, August 16, 2011, 然 安 wrote: > HI,all: > Why can't memcached be installed with static libevent library? > > Thank you! -- Trond Norbye

Re: install memcached with libevent?

2011-08-16 Thread Trond Norbye
On Wed, Aug 17, 2011 at 5:29 AM, 然 安 wrote: > If I compiled memcached with dynamic libevent library, I must have the > libevet library in the correct directory each time when I start the > memcached. I can't start a memcached server on the other computer only with > the compiled executive memcach

Re: install memcached with libevent?

2011-08-18 Thread Trond Norbye
would do this by adding: -R/path/to/the/libevent/lib/directory I'm not sure what gcc use, but I think it's something like -Wl,-rpath,/path/to/libevent.so (Google should help you find the correct syntax ;)) Cheers, Trond > --- *11年8月17日,周三, Trond Norbye * 写道: > > > 发件人: T

Re: link error with libmemcached

2011-08-22 Thread Trond Norbye
2011/8/22 然 安 > "libmemcached/sasl.c:149: undefined reference to `sasl_client_new' ". When > I compile my application with a static libmemcached library, a link error > with above notice has happened. Can anyone tell me the solution to this > problem? Thank you for your reply! Link with the li

Re: building the memcached on x86 solaris operating system failing

2011-08-26 Thread Trond Norbye
Too bad for me (or for postini :D)! > > I appreciate the enthusiasm, but give me a break. What is this? > > Couchbase isn't a "non standard version" of memcached. It's not memcached > at all. They have their own mailing lists which can actually answer > questions about it authoritatively. What's so bad about that? > > God dammit, > -Dormando -- Trond Norbye

Re: Issue 218 in memcached: Mac OS/X install fails

2011-08-27 Thread Trond Norbye
--with-libevent=../libevent --enable-threads > > > > > - > > > I removed the failure test from configure, and there also seems to be > > > a configuration issue with SIGIGNORE: > > > > http://code.google.com/p/memcached/issues/detail?id=218 > > ^ have you tried the exact patch that I posted in the issue? Or what > > exactly did you do to remove the failed test? > > > > -Dormando > -- Trond Norbye

Re: Issue 218 in memcached: Mac OS/X install fails

2011-08-27 Thread Trond Norbye
I just pushed the following fix to the problem: diff --git a/configure.ac b/configure.ac index 1e3893e..fdb385b 100644 --- a/configure.ac +++ b/configure.ac @@ -247,7 +247,7 @@ AC_CACHE_CHECK([for libevent directory], ac_cv_libevent_dir, [ AS_IF(test "$SUNCC" = "yes" -o "x$_myos" = "xsol

Re: genhash

2011-09-27 Thread Trond Norbye
m an email about using it. Cheers, Trond On Tue, Sep 27, 2011 at 10:07 PM, John David Duncan < john.david.dun...@gmail.com> wrote: > (Resending from the gmail account so Google will forward to the list) > > Hi Trond, > > commit e70f5ace86dc71a2683b884182fa46**d57965a25a &

Re: How to configure (as part of install) memcached against libevent.so files

2011-10-05 Thread Trond Norbye
: error: libevent is > required. You can get it from > > Can this be done? > > Does memcached use static or dynamic links to libevent? > > Thanks, > > Hoping to find a way to use memcached > -- Trond Norbye

Re: How to configure (as part of install) memcached against libevent.so files

2011-10-05 Thread Trond Norbye
mcached configure task needs from > the libevent installation directory? > > On Oct 5, 3:34 pm, Trond Norbye wrote: >> You need to specify the "root" of your libevent installation, so if you >> built libevent with: ./configure --prefix=$HOME/my-libevent , you sh

Re: how do I not store the keys?

2011-10-24 Thread Trond Norbye
On 24.10.11 16:06, "dormando" wrote: >> >> I'd surely take a patch/issue to add a configuration flag to ignore this >> check, but there's not one currently. >> >> In my personal opinion, I think we should allow binary keys. It is >> useful. > >I hope someone does send in a patch. I'd prefer a

Re: how do I not store the keys?

2011-10-24 Thread Trond Norbye
On 24.10.11 16:13, "dormando" wrote: >> I'd prefer a flag that I have to _enable_ to have the library verify my >> damn keys. Let the user do what he wants to do and don't expect every >> client user to be a moron. (just like the stupid ubuntu installations >>that >> adds all sorts of stupid al

Re: errors on solaris

2012-05-02 Thread Trond Norbye
On Thu, May 3, 2012 at 6:52 AM, Eugene M. Zheganin wrote: > Hi. > > I have 1.4.13 on Solaris x86_64. > Which solaris version is this? Which version of libevent? compiled with gcc? Sun studio? Which options? Trond

Re: how to add new source files to memcached

2012-05-08 Thread Trond Norbye
Makefile.am Den 8. mai 2012 06:48 skrev "sharc" følgende: > Hi all, > > I want make a slight extension to memcached server, and I have several > new source files to be added to the build system. What files shall I > modify? How to change? Thanks! > > > -sharc

Re: New optimized engine for Memecached 1.6

2012-07-03 Thread Trond Norbye
> > On Monday, July 2, 2012 4:59:49 PM UTC-7, p4 guru wrote: > >> Hi rajiv >> >> Could you elaborate on how to use Bag LRU, not sure what you mean by use >> -E path to memcached root wherever bag_lru_engine.so is ? >> >> thanks >> >> On Saturday

Re: licensing for memcached

2012-07-06 Thread Trond Norbye
On Fri, Jul 6, 2012 at 4:44 PM, jennindg wrote: > I just downloaded the latest tarball yesterday but did not see a LICENSE > file. There is a README, AUTHORS, NEWS and COPYING file but none of these > refer to a license. Did you try looking in the COPYING file? Trond

Re: Failed to write, and not due to blocking: Broken pipe

2012-09-05 Thread Trond Norbye
I believe I found the root cause for that a while back but I haven't pushed the patch for it yet (I haven't figured out how to write the test case yet). I'll try to remember to upload the patch when I get back home tonight. Cheers Trond sent from my Android phone... Den 5. sep. 2012 14:56 skrev

Re: Logs

2012-09-21 Thread Trond Norbye
Please don't take this the wrong way, but the output from -vvv will most likely not be very helpful to you unless you know some of the internals of memcached... Trond sent from my Android phone... Den 21. sep. 2012 08:49 skrev "Gonzalo de Pedro" følgende: > Brian is right. The very verbose mode

Re: Strange behaviour on get-multi over binary protocol

2013-02-19 Thread Trond Norbye
s required. I would think that a simple flush of the buffer would > be fine. > > Cheers, > -Brian -- Trond Norbye -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop rece

Re: threading configuration

2013-04-15 Thread Trond Norbye
up and stop receiving emails from it, send an > email to memcached+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Trond Norbye -- --- You received this message because you are subscribed to the Google Groups "memcached"

Re: About the 'delete' command

2013-09-25 Thread Trond Norbye
A distributed system may always have race conditions and you need to find a solution for them. Your delayed delete would not solve that because you don't know how slow the other stuff may be. Trond On Sep 25, 2013 3:13 PM, "Kevin Fang" wrote: > Hi guys, > > I have one question about the 'delete'

  1   2   3   >