Re: Memcached Hackathon Report(s)

2008-10-19 Thread Trond Norbye
. If you rely on arbitrary objects being treated as 0, you have a silent bug that will turn into a loud bug in the future. -- Trond Norbye Database Technology Group E-mail: [EMAIL PROTECTED] SUN Microsystems Phone: +47 73842100 Haakon VII's gt. 7BFax:+47

Re: memcache connection limit?

2009-01-13 Thread Trond Norbye
Bill Willits wrote: The memcached was started with the following options... [prodi...@es-ut2 logs]$ ps -ef | grep mem prodicon 30178 1 1 Jan12 ?00:16:54 /usr/local/bin/memcached -d -m 1024 -l 10.20.30.55 -p 11211 Is there a way to avoid the above errors and allow more

Re: binary noreply commands

2009-01-25 Thread Trond Norbye
Dustin wrote: On Jan 25, 10:13 pm, Toru Maesaka tmaes...@gmail.com wrote: I personally think that the behavior of not responding at all is okay since this is for complementing the no-reply I never particularly liked the no-reply mode for roughly the same reason. I think

stats subcommands in memcached...

2009-01-28 Thread Trond Norbye
Hi, I have been looking at some of the stats subcommands in memcached, and personally I would like to kill some of them (I believe that they have nothing to do in memcached): stats malloc - What would you use the output of this command for?? the biggest malloc user is the slab allocator,

Re: stats subcommands in memcached...

2009-01-29 Thread Trond Norbye
Josh Snyder wrote: My next question is stats cachedump. Are people using that feature?? Personally I would like to kill that as a stats subcommand, and try to think of a better way we may help developers to try to debug their application. stats cachedump can be very helpful. Here's how

Re: Killed by SIGPIPE using Memcached::libmemcached

2009-01-29 Thread Trond Norbye
On Jan 29, 2009, at 6:11 PM, Bill Moseley wrote: Excuse my poor IPC skills, but could the SIGPIPE handler be localized just to the library's socket calls and then restored? I guess there's risk that something else might interrupt before restoring the handler. We could do so, but then we

Re: Killed by SIGPIPE using Memcached::libmemcached

2009-01-29 Thread Trond Norbye
On Jan 29, 2009, at 7:50 PM, Mikael Johansson wrote: Hi, send() allows you to specify MSG_NOSIGNAL in the flags parameter which will suppress the SIGPIPE signal. The library can detect this error when send() returns -1 and errno is set to EPIPE, and flag the server as down. We use this

Re: Ideas on Concurrency Control Strategy

2009-03-06 Thread Trond Norbye
Dustin wrote: On Mar 5, 7:11 pm, Toru Maesaka tmaes...@gmail.com wrote: As for the global stats_lock, I think its safe to assume that most of the operations are write related so read-write locking is definitely not the answer here. I think Facebook was dead-on with their solution on

For review: issue 28

2009-03-16 Thread Trond Norbye
Issue 28: The manpage does not contain a description for all command line options... We need a description for: -C - Disable use of cas -R - Number of requests processed per event Proposed patch: diff --git a/doc/memcached.1 b/doc/memcached.1 index 45446dc..85886da 100644 ---

For review: issue 33

2009-03-19 Thread Trond Norbye
Issue: http://code.google.com/p/memcached/issues/detail?id=33 Proposed patch: http://github.com/trondn/memcached/commit/41e1b0c47dcaf573e717419f76bac60e48913a59 Cheers Trond

Re: memcache memory limit

2009-03-20 Thread Trond Norbye
On Mar 20, 2009, at 8:10 AM, Sudipta Banerjee wrote: it has 8 gigs of ram and its 64 bit Compile memcached as a 64bit binary and you should be able to use as much memory as you want (I have tested with up to 30Gb)... Please note that memcached use more memory than the memory specified

Re: Soft flushing proposal

2009-03-20 Thread Trond Norbye
JC wrote: any better chance for the 1.3 if I make it as a possible 0 extra cost feature like the CAS? ;-) I would say that it is too late for inclusion in the initial release of 1.3. I would say that we should only apply bugfixes to the 1.3 right now and get it into a stable state so

For review: Issue 37

2009-03-23 Thread Trond Norbye
Issue: http://code.google.com/p/memcached/issues/detail?id=37 Patch: http://github.com/trondn/memcached/tree/issue_37 Cheers Trond

For review Issue 22, stats reset doesn't clear the itemstats

2009-03-24 Thread Trond Norbye
Issue: http://code.google.com/p/memcached/issues/detail?id=22 Patch: http://github.com/trondn/memcached/commit/53180103df1bbca1292a14ef96aab2e6a19e13cf Cheers, Trond

Re: For review: using git describe for version numbers

2009-03-27 Thread Trond Norbye
-- Trond Norbye OPG, Database Technology Group E-mail: trond.nor...@sun.com SUN Microsystems Phone: +47 73842100 Haakon VII's gt. 7BFax:+47 73842101 7485 Trondheim, Norway

Re: for review: growth refactoring

2009-04-07 Thread Trond Norbye
; } } return rv; } http://github.com/dustin/memcached/commits/growth-refactor -- Trond Norbye Application Platform Software Group E-mail: trond.nor...@sun.com SUN Microsystems Phone: +47 73842100 Haakon VII's gt. 7B Fax:+47 73842101

For review: Stats slabs should include the number of requested bytes

2009-04-07 Thread Trond Norbye
Issue: http://code.google.com/p/memcached/issues/detail?id=42 It should be possible to detect the number of bytes actually allocated in a given slab class to make it easier to detect if one is using the wrong growth factor. Patch: http://github.com/trondn/memcached/tree/issue_42 The stats

Re: Quick question - slab stats vs. main stats

2009-04-29 Thread Trond Norbye
? Now I'm debating if I should update memcache-top to report on actual available space based on the slab stats, since that's a very different number from the available space according to bytes vs. limit_maxbytes... :) Thanks, Nicholas -- Sent from my mobile device -- Trond Norbye

Re: wireshark memcache protocol dissector

2009-04-29 Thread Trond Norbye
What about contributing the dissector back to the wireshark community? Trond On Apr 29, 2009, at 4:57 PM, Rama wrote: Hi, We implemented a wireshark memcache text protocol dissector to look at packet captures on port 11211. This could be a pretty useful tool especially if you want look at

Re: documentation on memcached commands

2009-05-08 Thread Trond Norbye
On May 8, 2009, at 12:28 PM, ALV wrote: Is there a help command that I can use to view all the commands that can be used from memcached port? No I am trying to find the different commands that I can use, but the protocols.docs does not seem to be complete. thanks. Why do you believe

Re: port_dissociate

2009-06-04 Thread Trond Norbye
, and then does the set and get as needed. Any help on solving why this dies is much appreciated. -- Trond Norbye Web Scale Infrastructure E-mail: trond.nor...@sun.com SUN Microsystems Phone: +47 73842100 Haakon VII's gt. 7B Fax:+47

Re: Memcached process status support for init script

2009-06-09 Thread Trond Norbye
On 9. juni. 2009, at 11.38, Stéphane Loeuillet wrote: Hello, As I haven't seen an official bug tracker for memcached http://code.google.com/p/memcached/issues/list Please file the bug there. Cheers, Trond Attached to this debian bug report, I've found a patch that adds supports for

Re: Locking contention

2009-06-15 Thread Trond Norbye
could be done on a per bucket basis plus an additional lock for LRU list management. Would you be interested on any work on that direction? Regards, Jaime. -- Trond Norbye Web Scale Infrastructure E-mail: trond.nor...@sun.com SUN Microsystems Phone

Re: Sporadically cache entries do not expire

2009-06-19 Thread Trond Norbye
Sebastian wrote: Dear all, Now for the third time we have noticed an unusual behaviour resulting in getting back cache hits, which should have been expired. All of our keys have a maximum lifecycle of 5 minutes. But again since yesterday evening it seems that all keys are still in the cache,

Re: Sporadically cache entries do not expire

2009-06-19 Thread Trond Norbye
Sebastian wrote: Hi Trond, but what is the memcached version and operating system you are using? Linux version 2.6.28.9 (r...@livecd) (gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)) Memcached 1.2.6 memcached 1.2.6 is quite old. You should try to see if you could reproduce the problem

Re: [RFC][PATCH] cache_lock removal

2009-06-22 Thread Trond Norbye
Jaime Medrano wrote: Hi. I've rewritten the locking in order to remove the problematic global cache_lock mutex. I have splitted the lock in several locks: - assoc_locks: access to hash table - maintenance_lock: signaling a hash table expansion - lru_locks: access to lru list -

For review: patch for issue 61

2009-06-30 Thread Trond Norbye
Issue 61 http://code.google.com/p/memcached/issues/detail?id=61: reqs_per_event handling (-R) is incorrect leading to client lockups patch: http://github.com/trondn/memcached/commit/3ea9838fdbfac07cc50edafc4f85dc49a57b5168 cheers Trond

Re: Cant make another instance of memcached to run on another port

2009-07-14 Thread Trond Norbye
On 14. juli. 2009, at 18.25, Dustin wrote: Oh, one more thing: please don't run memcached (or anything else where it isn't absolutely necessary) as root. This is very dangerous. That's why memcached refuses to do it unless you want forcefully tell it that it's wrong and that you know

Re: web cleanup request for danga.com

2009-07-16 Thread Trond Norbye
On 16. juli. 2009, at 19.22, Matt Ingenthron wrote: Brian Aker wrote: Why not just update the wiki on code.google.com? A greater number of people can access/keep that up to date. I probably agree with you there. I'm one of those people (though I can't seem to be able to edit the

Re: Weird data corruption happens on frequent increases

2009-07-20 Thread Trond Norbye
funny key names). It should be just an integer. And not a big one at that, the way the application is, it's never more than a two digits integer... Since we changed the data width to 5 (overkill) things hold up. Weird, as I said. Regards Karoly chx Negyesi -- Trond Norbye Web Scale

Re: memcached - expire (again)

2009-07-21 Thread Trond Norbye
knowledge in C is a bit dusty but at least I could read the code till now). but this clearly only makes sense if that patch would make its way into the sources and stay there. regards Werner. -- Trond Norbye Web Scale Infrastructure E-mail: trond.nor...@sun.com SUN

Re: memcached - expire (again)

2009-07-21 Thread Trond Norbye
, prepare the cachedump, send it over the net, parse the cachedump client-side, compare the timestamps (what could be done serverside instead of preparing the cachedump), then send thousands of delete requests back to the server and waste bandwidth a second time. -- Trond Norbye Web Scale

Re: confuse about the getk,getq command

2009-07-22 Thread Trond Norbye
On 22. juli. 2009, at 05.21, jacky wrote: Hi all: I have just installed the latest version 1.4.0, and I read the doc/ protocol-binary.xml. There are some new command like getk, getq, setq and so on. I'm not sure how can I use these commands. Can I use them in ascii protocol? Or they are

Re: memcached - expire (again)

2009-07-23 Thread Trond Norbye
On 22. juli. 2009, at 22.36, dl4ner wrote: Trond, Well, it will allocate a new item unless it finds an expired item in the tail of the item LRU. You may have expired items in the middle of your LRU list, and you would still evict items from the cache if all memory is allocated. I just

Re: CentOS 64 install: memcached.pid not created

2009-08-05 Thread Trond Norbye
LarryK wrote: Thanks, I did think of that too. I had changed the permissions to o+w -- drwxr-xrwx 10 root root 4096 Aug 5 17:36 /var/run Alternatively you could create the file s root and chown it to nobody before starting memcached to avoid others to create files there... Trond

Re: Issue 75 in memcached: Unnecessary stats locks around flushes.

2009-08-18 Thread Trond Norbye
On 18. aug.. 2009, at 10.52, codesite-nore...@google.com wrote: Status: New Owner: dsallings Labels: Type-Defect Priority-Medium New issue 75 by dsallings: Unnecessary stats locks around flushes. http://code.google.com/p/memcached/issues/detail?id=75 Since stats are thread-local, there

Re: release updates and roadmap discussion

2009-09-01 Thread Trond Norbye
dormando wrote: Hey, I wasn't really intending on doing another 1.3-like series. Since the new protocol was a Big Deal and a Forward Standard we had to give it a lot of time and a few good public revisions before solidifying on it. I don't think any of our forward internal changes really

Re: Problem in installing Memcache in linux( RHEL)

2009-09-04 Thread Trond Norbye
Please file an issue at http://code.google.com/p/memcached/issues/list We don't have a builder running RHEL, so we cannot detect such problems before releasing. If you would like us to test on RHEL during development, please consider hosting a builder for us. For more information about

Re: Multi-threading and cpu affinity

2009-09-16 Thread Trond Norbye
3 memcached 3583 nobody15 0 310m 260m 604 S1 12.9 4:29.27 3 memcached Jason Priebe CBC New Media Group -- Trond Norbye Web Scale Infrastructure E-mail: trond.nor...@sun.com SUN Microsystems Phone: +47 73842100 Haakon VII's gt. 7B

Re: memcache on linux

2009-09-18 Thread Trond Norbye
jim wrote: Matt, What configures libevent to use one event mechanism from other? e.g. epoll vs poll vs kqueue How is this(event mechanism to be used) configured in libevent and when (build time or run time)? Any relavant docs about this will be helpful. There is a number of environment

Re: noreply error

2009-10-29 Thread Trond Norbye
kroki wrote: On Oct 29, 1:10 pm, dormando dorma...@rydia.net wrote: The reason was that nobody was using that extra parameter and the developers wanted to remove it. Also, despite having *a year's* worth of releases and prodding on the mailing list for client authors to test, this is the

Re: noreply error

2009-10-29 Thread Trond Norbye
kroki wrote: On Oct 29, 3:47 pm, Trond Norbye trond.nor...@sun.com wrote: I think it is a lot better that the server sends back an error message and let the client handle that instead. Handle... how? What are your suggestions on how to support this in clients? Clients should

Re: Windows 2003 64 Bit memory utilization?

2009-11-03 Thread Trond Norbye
Do you need to install a runtime to run a binary compiled with MinGW, or is there just one binary we need to release? If we can release a single binary that a user can download we (aka the community) could provide a binary for each release to ease the pain for the average windows

Re: Windows 2003 64 Bit memory utilization?

2009-11-04 Thread Trond Norbye
On 11/04/2009 08:48 AM, David H. wrote: proliferation of stale Win32 ports that currently exists. I notice that VC9 is lackingstdbool.h andstdint.h. These are not show- stoppers. If that is the only problem I don't see any problems of moving the include of those two headers to config.h..

Re: Windows 2003 64 Bit memory utilization?

2009-11-04 Thread Trond Norbye
On 11/04/2009 09:00 AM, Trond Norbye wrote: On 11/04/2009 08:48 AM, David H. wrote: proliferation of stale Win32 ports that currently exists. I notice that VC9 is lackingstdbool.h andstdint.h. These are not show- stoppers. If that is the only problem I don't see any problems of moving

Re: Slow connection and slow response time from memcached server

2009-11-17 Thread Trond Norbye
On 11/18/2009 01:27 AM, head wrote: STAT curr_connections 2989 STAT total_connections 75315 Switch to pooled connections instead of making new ones all the time. /Henrik Schröder do you mean pconnect? of course we are using pconnect :) No. you should reuse the connection

Re: Slow connection and slow response time from memcached server

2009-11-18 Thread Trond Norbye
On 18. nov.. 2009, at 17.29, Carlos Alvarez wrote: On Mon, Nov 16, 2009 at 6:04 PM, dormando dorma...@rydia.net wrote: Are you using large multigets at all? Please forgive me if I am wrong, I am just a newbie. Looking at the code (libmemcached), I understand that large multigets of small

Re: Issue 117 in memcached: memcached 1.4.4 segfaults error 6 on CentOS 5.4 kernel2.6.18-164.9.1.el5 64bit

2009-12-24 Thread Trond Norbye
received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings -- -- Trond Norbye

Re: ARM CPU and alignment issues.

2009-12-26 Thread Trond Norbye
After moving around elements of the structures I found there are some savings that can be achieved. Here's a diff of original vs optimized size: size of struct slab_stats = 56 -size of struct stats = 160 -size of struct settings = 112 +size of struct stats = 152 +size of

Re: Problems with binary protocol and memcached PECL extension

2010-01-06 Thread Trond Norbye
libmemcached and PECL memcached extensions installed. Thanks! Jay -- Trond Norbye

Re: Problems with binary protocol and memcached PECL extension

2010-01-06 Thread Trond Norbye
Try running your server from a console and add -vvv to the command line. Does ti print out any progress? On Wednesday, January 6, 2010, Jay Paroline boxmon...@gmail.com wrote: 1.4.4 On Jan 6, 5:07 pm, Trond Norbye trond.nor...@gmail.com wrote: What server version are you using? Trond

Re: memcached and access control

2010-02-06 Thread Trond Norbye
On Feb 5, 2010, at 3:28 AM, KaiGai Kohei wrote: I have one more point to be issued here. Memcached protects an item from concurrent updates using mutex lock (cache_lock) in store_item. The store_item() acquires a mutex lock during do_store_item(), so all the updates operations shall be

Re: [OT] Re: memcached and access control

2010-02-06 Thread Trond Norbye
On Feb 5, 2010, at 3:40 AM, KaiGai Kohei wrote: (2010/02/04 18:32), Toru Maesaka wrote: Hi! Thanks for your proof of concept. From observing your patch, you should be able to develop this as an engine once we make changes to the modular engine subsystem based on your feedback. Your

Re: memcached and access control

2010-02-09 Thread Trond Norbye
On Feb 9, 2010, at 6:07 PM, Dustin wrote: On Feb 9, 12:46 am, KaiGai Kohei kai...@ak.jp.nec.com wrote: I expected --enable-default-engine allows to link default_engine in static. It should (did last time I tried it). I'm not sure what issue you're having with that. Just a wild guess

Re: Memcache fails after few millions of hits - how to debug it?

2010-02-17 Thread Trond Norbye
What is your memcached version? Are you using persistent or single-shot connections to the memcached server? You could also look at the socket state on your servers with netstat etc)) Cheers, Trond On Feb 17, 2010, at 9:48 AM, Niro wrote: I'm running an EC2/Scalr small app instance with the

Re: Any plan for libev support?

2010-02-20 Thread Trond Norbye
Then I guess the answer is no, because memcached is BSD... Trond Sent from my iPhone On 20. feb. 2010, at 16.23, Ryan Chan ryanchan...@gmail.com wrote: On 2月18日, 下午11時27分, Paul Lindner lind...@inuus.com wrot e: I didn't see any mention of the license. libevent is bsd, which

Re: Any plan for libev support?

2010-02-20 Thread Trond Norbye
'retain the copyright notice' license, with the GPL permitted as an alternative. Trond Norbye wrote: Then I guess the answer is no, because memcached is BSD... Trond Sent from my iPhone On 20. feb. 2010, at 16.23, Ryan Chan ryanchan...@gmail.com wrote: On 2月18日, 下午11時27分, Paul Lindner lind

Re: Any plan for libev support?

2010-02-20 Thread Trond Norbye
with libevent, and from my performance measurement on memcached I haven't seen libevent as a pain point.. Cheers, Trond Vijay Sent from my iPhone On Feb 20, 2010, at 2:05 PM, Trond Norbye trond.nor...@gmail.com wrote: Ok, I didn't read the license link myself ;-) Changing

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 connect to

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 kai...@ak.jp.nec.com wrote: (2010/04/02 11:29), Dustin Sallings wrote: Can you submit this as a

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.

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). What is the primary

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 part of

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

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

Re: building a statically linked version of memcached

2010-04-16 Thread Trond Norbye
:245: undefined reference to `event_base_loop' collect2: ld returned 1 exit status On Apr 16, 10:59 am, Trond Norbye trond.nor...@gmail.com wrote: 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

Re: building a statically linked version of memcached

2010-04-19 Thread Trond Norbye
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, 2:38 pm, Trond Norbye trond.nor...@gmail.com wrote: On 16. apr. 2010, at 10.48, Harry Duin wrote: After adding -lrt I

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 in

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 with

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 ramprasad...@gmail.com 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 dsalli...@gmail.com wrote:

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 sne...@gmail.com 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) {

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

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 is not

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 source

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: 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 lind...@inuus.com wrote: memcache only compiles in a threaded mode these days. The docs are out of date. The 5th thread you see is

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 way to

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 `test'

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 any

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 stevenvenera...@gmail.com 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

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:

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 eric.d.lamb...@gmail.com wrote: On 12/7/10 9:59 PM, pravesh suyal wrote: rm -rf pravesh

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 that only space

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

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, less

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 and

Re: libmemcache linking error in application compilation

2011-03-12 Thread Trond Norbye
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 On Mar 12, 11:28 am, Trond Norbye trond.nor...@gmail.com wrote: You should try building a 32 bit

Re: libmemcache linking error in application compilation

2011-03-12 Thread Trond Norbye
application as well. How can i build my application as a 64 bit Regards, Rahul On Mar 12, 10:56 pm, Trond Norbye trond.nor...@gmail.com wrote: On 12. mars 2011, at 09.47, Maddy wrote: As i said in my 2nd post that the OS is 64 bit. Also -disable-64bit will only disables libmemcache

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, Trond Norbye trond.nor

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: Build errors on engine-pu

2011-03-28 Thread Trond Norbye
I pushed the following: commit 7abbc666e9625ac39305e2e801e55ca195634f36 Author: Dustin Sallings dus...@spy.net 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

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
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. -Dormando On Mon, 11 Apr 2011, Trond Norbye

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 trond.nor...@gmail.com 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'm aware

  1   2   >