Return-Path: X-Original-To: apmail-directmemory-dev-archive@www.apache.org Delivered-To: apmail-directmemory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C01910270 for ; Sun, 28 Jul 2013 18:31:08 +0000 (UTC) Received: (qmail 43665 invoked by uid 500); 28 Jul 2013 18:31:07 -0000 Delivered-To: apmail-directmemory-dev-archive@directmemory.apache.org Received: (qmail 43574 invoked by uid 500); 28 Jul 2013 18:31:01 -0000 Mailing-List: contact dev-help@directmemory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directmemory.apache.org Delivered-To: mailing list dev@directmemory.apache.org Received: (qmail 43563 invoked by uid 99); 28 Jul 2013 18:30:58 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jul 2013 18:30:58 +0000 Received: from localhost (HELO [192.168.2.116]) (127.0.0.1) (smtp-auth username noctarius, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jul 2013 18:30:57 +0000 Message-ID: <51F5635E.3050808@apache.org> Date: Sun, 28 Jul 2013 20:30:54 +0200 From: Christoph Engelbert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: =?windows-1254?Q?serkan_=F6zal?= , dev@directmemory.apache.org Subject: Re: Jillegal, Java OffHeap Memory Solution References: <1335534360.7434092.1375031065824.JavaMail.app@ela4-app3202.prod>,<84f97524-fd6f-4a7c-acc2-1e83ca8025d0@email.android.com> , In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=windows-1254 Content-Transfer-Encoding: 8bit Hi Serkan I move the conversation back to the mailinglist :-) See comments inline. Am 28.07.2013 20:19, schrieb serkan �zal: > Hi Chris, > > In my offheap pool solution, objects are allocated outside heap > and there is no serialization/deserialization need. So you reallocate all member accesses? That's sounds very interesting! I haven't had time for taking a look at the code but I definately will! > Because original object is created on offheap and it is not > tracked by GC. Objects are allocated with Unsafe by using some > direct memory access and low level Java tricks. If you are > interested in, maybe this solution can be a subproject of > "Apache DirectMemory". DirectMemory is designed as a cache but not for allocating complete objects but maybe it could be a nice optional feature. My problem is: I found out that direct memory access for very short pieces of data are to costly so I ended up buffering 1K of bytes before firing them to the native memory location - how do you deal with this? > > In addition, I am thinking of writing byte code generation > based object mapper and serializer/deserializer. Because of it > is not reflection based there will be no performance overhead > and it will be as fast as implemented as manual. I implemented > similar thing for Spring Row Mapper > (https://github.com/serkan-ozal/spring-jdbc-roma) > This sounds pretty similar to what DM - Lightning does. At the moment the development of it is a bit fallen asleep but if you're interested count me :-) Cheers Chris > Cheers, > > -- > > Serkan > > -------------------------------------------------------------------- > > Subject: RE: Jillegal, Java OffHeap Memory Solution > From: me@noctarius.com Date: Sun, 28 Jul 2013 20:01:01 +0200 > To: serkanozal86@hotmail.com > > Hi Serkan > > It's not yet in the trunk since some more unittests are missing > but you can have a look here > https://github.com/noctarius/directmemory/tree/buffer/directmemory-buffer > > It is Bytebuffer or Unsafe based and heavily uses partitioning > for high throughput in high concurrent environments. It's not > an automatic object mapper but offers a rich, growing buffer > interface. > > Chris > > > > "serkan �zal" schrieb: > > Hi Chris, I have not look at source of the new buffer backend > yet. Is it ByteBuffer based or does it user > serialization/deserialization? > > -------------------------------------------------------------------- > > Subject: Re: Jillegal, Java OffHeap Memory Solution > From: me@noctarius.com Date: Sun, 28 Jul 2013 19:07:25 +0200 > To: serkanozal86@hotmail.com > > Hi Serrano, I saw the mail on my apache account :-) Do you had > a look at the source of the new buffer backend? > > Cheers Chris > > > > "Serkan �zal �ber LinkedIn" schrieb: > > > > > > > > > > > > > > > > > Serkan zal > > > Senior Software Engineer at T2 > > > > > > > > > > > > > > > > > > Hi Christoph, > > I am so sorry for my late response about Project PROPOSAL named > Jillegal. > http://mail-archives.apache.org/mod_mbox/directmemory-dev/201304.mbox/%3C517C24CA.2090509@apache.org%3E > > > > Here is GitHub URL of my project about Off Heap Pool. > https://github.com/serkan-ozal/jillegal In addition, it > includes support for on the fly instrumentation. This is the > draft version of my project. I am currently working on > splitting it into sub-project named jillegal-core, > jillegal-offheap, jillegal-instrument, ... > > Cheers, > > -- > > Serkan �ZAL > > > > > > > Serkan zal antworten > > > > > > > > > > Tipp Sie k�nnen diese Nachricht direkt beantworten, indem Sie > auf den Button klicken. > > > > > > > Sie erhalten folgende E-Mails: Nachricht von LinkedIn. > Abbestellen > > > > > > Diese E-Mail war an Christoph Engelbert gerichtet (Java > Gameserver / Backend Developer bei Ubisoft). Erfahren Sie, > warum wir dies hinzuf�gen > . > > � 2013, LinkedIn Corporation. 2029 Stierlin Ct., Mountain > View, CA 94043, USA > > > > > -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit > K-9 Mail gesendet. -- ############################## # A Digital's Life # ############################## Nickname: Noctarius Location: Germany Meet me at: Ohloh: http://www.ohloh.net/accounts/noctarius G+: https://plus.google.com/114622570438626215811 Web: http://www.noctarius.com LinkedIn: http://www.linkedin.com/in/noctarius Xing: https://www.xing.com/profile/Christoph_Engelbert Masterbranch: https://masterbranch.com/christoph.engelbert XMPP/Jabber: noctarius@jabber.ccc.de