mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Neil <neil@qlsc.sdu.edu.cn>
To: linux-kernel@vger.kernel.org
Subject: Yet another I/O modeling
Date: Sun, 27 Feb 2005 19:05:17 +0000	[thread overview]
Message-ID: <422219ED.5060404@qlsc.sdu.edu.cn> (raw)

hi,all
select/poll I/O modeling is fast,easy to use,it returns the number of fd 
which are acitvity,but you should scan the fd array to find which fd is 
ready,it costs a lot of time on a heavy load server.

I proposal another I/O modeling,named eselect.
struct eselect_struct{
    unsigned long readbitmap[MAXBITMAPFD];//suppose the MAXBITMAPFD is 
MAX OPEN                                         //FD NUMBER PER PROCESS
    int ret;//-1 on error,non-negative return value is the number of     
            //acitvity fds
}
we can use __set_bit(),__clear_bit(),__find_first_bit()....functions to 
maintain the bitmap.
So,you shouldnt scan the fd array any more.




             reply	other threads:[~2005-02-27 11:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-27 19:05 Neil [this message]
2005-02-27 23:36 ` pmarques

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=422219ED.5060404@qlsc.sdu.edu.cn \
    --to=neil@qlsc.sdu.edu.cn \
    --cc=linux-kernel@vger.kernel.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®