mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Nigel Cunningham <ncunningham@linuxmail.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: is_head_of_free_region slowing down swsusp
Date: Fri, 13 Aug 2004 01:22:42 +0200	[thread overview]
Message-ID: <20040812232242.GI15138@elf.ucw.cz> (raw)
In-Reply-To: <1092350569.24776.22.camel@laptop.cunninghams>

Hi!

> > is_head_of_free_region with count_and_copy_zone results results in
> > pretty nasty O(number_of_free_regions^2) behaviour, and some users see
> > cpu spending 40 seconds there :-(.
> > 
> > Actually count_and_copy_zone would probably be happy with
> > "is_free_page()".
> 
> Take a look at my implementation. I do a one-time pass through the slow
> path, building a bitmap of free pages. is_head_of_free_region is then
> simply a O(1) loop through the bitmap.

I've seen that solution (thanks)... I'd like to do something simpler.

									Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

  reply	other threads:[~2004-08-12 23:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-12 22:23 Pavel Machek
2004-08-12 22:42 ` Nigel Cunningham
2004-08-12 23:22   ` Pavel Machek [this message]
2004-08-13  5:51     ` Nigel Cunningham
2004-08-13 10:21 ` Pavel Machek

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=20040812232242.GI15138@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ncunningham@linuxmail.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

all inboxes | Powered by JetHome®