xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, Bob Liu <bob.liu@oracle.com>,
	Bob Liu <lliubbo@gmail.com>,
	keir@xen.org, ian.campbell@citrix.com
Subject: Re: [RFC PATCH 00/11] tmem: some basic cleanup
Date: Tue, 5 Nov 2013 09:46:44 -0500	[thread overview]
Message-ID: <20131105144644.GC29935@phenom.dumpdata.com> (raw)
In-Reply-To: <5278C28302000078000FF67A@nat28.tlf.novell.com>

On Tue, Nov 05, 2013 at 09:03:47AM +0000, Jan Beulich wrote:
> >>> On 05.11.13 at 03:04, Bob Liu <bob.liu@oracle.com> wrote:
> > On 11/04/2013 11:56 PM, Jan Beulich wrote:
> >>>>> On 04.11.13 at 13:40, Bob Liu <lliubbo@gmail.com> wrote:
> >>> There are too many typedefs and referenced once functions in tmem, perhaps 
> > the
> >>> reason was tmem was designed can be ported to other hypersivor easily.
> >>> But when I try to read tmem source code, some of them are not very
> >>> straightforward. This patchset try to clean up them. It's only my thoughts 
> > so I
> >>> tag this patchset with RFC.
> >> 
> >> If I was the maintainer, or as to make a recommendation, I wouldn't
> >> accept these changes - they were done for a purpose after all. If
> >> anything a re-work from grounds up would seem the only reasonable
> >> option.
> >> 
> > 
> > Well, I'd like re-work tmem from ground also.
> > But currently it's too difficult for me to re-work it since I don't have
> > enough knowledge. It's hard for me to understand tmem quickly because of
> > its order of complexity and I'm not fit to its coding style.

The coding style is a Xen style - it takes a bit of use to it as
it is different from the Linux one. (I am still struggling with it).

> > 
> > Clean up patches will also be the first step even reworking it from
> > grounds unless we can start with a new better/simpler tmem.c
> > implementation and replace current one directly.
> 
> That's actually what I meant with "from grounds up" - just start
> over (mostly) from scratch.

I am not sure why that is advocated.

I really prefer that the existing code be fixed up/altered/changed/made
more readable/fixed. When that has been completed and if the design is
bad - then perhaps reworking team from ground up could be considered.

But that can be done alongside - similar to how event channel mechanism
has now two implementations.

Now long-term ahead - some of the esoteric features - like de-duplication,
compression, etc. Those can be moved to different parts of the code as they
are more complex (And make the structures harder to understand). Perhaps
to a different file. Thought all of them are pretty awesome features.

There are also two locking mechanism. The 'big lock' (not in usage, but
could be in use for debugging) and the normal lock. The 'big lock' could go
away. If there is contention the locking can be reworked to be more optimal.

> 
> Jan
> 

  reply	other threads:[~2013-11-05 14:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-04 12:40 [RFC PATCH 00/11] tmem: some basic cleanup Bob Liu
2013-11-04 12:40 ` [PATCH 01/11] tmem: cleanup: drop COMPARE_COPY_PAGE_SSE2 Bob Liu
2013-11-04 12:40 ` [PATCH 02/11] tmem: cleanup: drop typedef pfp_t Bob Liu
2013-11-04 12:40 ` [PATCH 03/11] tmem: cleanup: drop typedef tmem_cli_mfn_t Bob Liu
2013-11-04 12:40 ` [PATCH 04/11] tmem: cleanup: rename 'tmh_' with 'tmem_' Bob Liu
2013-11-04 12:40 ` [PATCH 05/11] tmem: cleanup: drop most of the typedefs Bob Liu
2013-11-04 12:40 ` [PATCH 06/11] tmem: cleanup: drop function tmem_alloc/free_infra Bob Liu
2013-11-04 12:40 ` [PATCH 07/11] tmem: cleanup: drop typedef tmem_client_t Bob Liu
2013-11-04 12:40 ` [PATCH 08/11] tmem: cleanup: drop useless wrap functions Bob Liu
2013-11-04 12:40 ` [PATCH 09/11] tmem: cleanup: drop unused function 'domain_fully_allocated' Bob Liu
2013-11-04 12:40 ` [PATCH 10/11] tmem: cleanup: drop useless '_subpage' wrap functions Bob Liu
2013-11-04 12:40 ` [PATCH 11/11] tmem: cleanup: drop useless functions Bob Liu
2013-11-04 15:56 ` [RFC PATCH 00/11] tmem: some basic cleanup Jan Beulich
2013-11-04 16:48   ` Konrad Rzeszutek Wilk
2013-11-05  2:04   ` Bob Liu
2013-11-05  9:03     ` Jan Beulich
2013-11-05 14:46       ` Konrad Rzeszutek Wilk [this message]
2013-11-05 14:57         ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131105144644.GC29935@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=bob.liu@oracle.com \
    --cc=ian.campbell@citrix.com \
    --cc=keir@xen.org \
    --cc=lliubbo@gmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).