Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Mar 1998 14:34:51 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Ustimenko Semen <semen@iclub.nsu.ru>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Are mbufs aligned or bounded on something? 
Message-ID:  <199803042234.OAA22577@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 04 Mar 1998 22:33:06 %2B0600." <Pine.BSF.3.96.980304221825.9233A-100000@iclub.nsu.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> In other words: should i care about mbuf cluster is bounded on PAGE_SIZE
> in physical memory.

Unless it explicitly matters to your hardware, you should assume that 
mbuf clusters are aligned to suit the architecture you're running on.

If it *does* matter to your hardware, I would be inclined to suggest 
that you code to handle all situations, and optimise for the case where 
the alignment best suits you.  This will greatly improve the 
portability of your code.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803042234.OAA22577>