Return-Path: X-Original-To: apmail-incubator-directmemory-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-directmemory-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F31099017 for ; Fri, 2 Mar 2012 07:54:34 +0000 (UTC) Received: (qmail 84890 invoked by uid 500); 2 Mar 2012 07:54:34 -0000 Delivered-To: apmail-incubator-directmemory-dev-archive@incubator.apache.org Received: (qmail 84844 invoked by uid 500); 2 Mar 2012 07:54:34 -0000 Mailing-List: contact directmemory-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: directmemory-dev@incubator.apache.org Delivered-To: mailing list directmemory-dev@incubator.apache.org Received: (qmail 84836 invoked by uid 99); 2 Mar 2012 07:54:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 07:54:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.andre.pearce@me.com designates 17.158.233.229 as permitted sender) Received: from [17.158.233.229] (HELO nk11p99mm-asmtpout008.mac.com) (17.158.233.229) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 07:54:26 +0000 MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Received: from [172.20.10.4] (92.40.253.36.threembb.co.uk [92.40.253.36]) by nk11p03mm-asmtp998.mac.com (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTPSA id <0M08003O6Z9P8F40@nk11p03mm-asmtp998.mac.com> for directmemory-dev@incubator.apache.org; Fri, 02 Mar 2012 07:53:54 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7498,1.0.260,0.0.0000 definitions=2012-03-02_02:2012-03-02,2012-03-02,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=3 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1203010373 Subject: Re: DIRECTMEMORY-9 From: =?iso-8859-1?Q?Michael_Andr=E9_Pearce?= In-reply-to: <2E44B011-9EC8-4A7D-8078-80C7801AF34B@me.com> Date: Fri, 02 Mar 2012 07:54:34 +0000 Content-transfer-encoding: quoted-printable Message-id: <2A7CCA61-826A-4223-889E-91B5DCE7C352@me.com> References: <2E44B011-9EC8-4A7D-8078-80C7801AF34B@me.com> To: directmemory-dev@incubator.apache.org X-Mailer: Apple Mail (2.1251.1) X-Virus-Checked: Checked by ClamAV on apache.org Hi Benoit, Though i should explain why i dont think issue 9 can be closed yet. Conceived reason why it still is needed in my mind. So buffer space is as such after loading it with some data Pointer Size State 1 1m full 2 2m full 3 1m full 4 2m full 5 1m full 6 2m full 7 1m full I then free, pointers, 1,3,5 and 7. Pointer Size State 1 1m free 2 2m full 3 1m free 4 2m full 5 1m free 6 2m full 7 1m free I then want to put 2m in the cache. I cant but there is 4m actually = avail, needs defrag. So atm im -1 for closing this story, i think the merging memory is a = great idea, as it gives a quick win, without a more expensive defrag, = but still think a defrag routine or algo is needed for the above. On 2 Mar 2012, at 07:22, Michael Andr=E9 Pearce wrote: > I think you may want some defragmentation still, especially if the = buffers a fair % full and the free pointers are spread, would mean that = if any larger object that the free pointers arent large enough for, but = in total could hold, without defrag would mean wouldn't be able to = store. >=20 >=20 > On 2 Mar 2012, at 07:15, Benoit Perroud wrote: >=20 >> Hi All, >>=20 >> Now with DIRECTMEMORY-40 done and a new slab's style allocator, I >> wonder if DIRECTMEMORY-9 is still relevant or if it could also be >> closed. >>=20 >> Thanks, >>=20 >> Benoit. >=20