mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Qi Yong" <qiiyoong@gmail.com>
To: "Postfix developers" <postfix-devel@postfix.org>
Cc: "Qi Yong" <qiyong@fc-cn.com>,
	linux-kernel@vger.kernel.org, lesanti@gmail.com
Subject: Re: var_mailbox_limit 32bit limit
Date: Tue, 4 Mar 2008 11:08:11 +0800	[thread overview]
Message-ID: <2cd57c900803031908p376f86fx54aa74302e8b2b18@mail.gmail.com> (raw)
In-Reply-To: <20080303180437.B33A51F3E9A@spike.porcupine.org>

On 04/03/2008, Wietse Venema <wietse@porcupine.org> wrote:
> Leandro Santi:
>
> > On 3/1/08, Qi Yong <qiiyoong@gmail.com> wrote:
>  > > On 29/02/2008, Leandro Santi <lesanti@gmail.com> wrote:
>  > >  > On 2/29/08, Qi Yong <qiiyoong@gmail.com> wrote:
>  > >  >  >  var_mailbox_limit is int type. This caps mailbox_size_limit to 2147483647
>  > >  >  >  at the maximum. I'd like to make var_mailbox_limit a long integer. What do
>  > >  >  >  you think of this idea? And objections? I have large mboxs here. Thanks.
>
>
> Using long won't help, especially not when int==long like it is
>  on 32-bit boxes.

It should work. long are 64bit on Linux x86_64 or FreeBSD amd64. And
most if not all newer servers support that 'long mode'.

>
>  To handle >2GB files, you either need a grown-up OS, or you need

(Seems people here think Linux is 'toy operating' and not 'grown-up'.
Actually if you have to blame, you'd blame GNU, not the kernel.)

I think that GNU/Linux was supporting large file in a different way
from *BSD as you think was because they were afraid making off_t 64bit
would break old wrong things. And there are also other considerations.
Then they introduced off64_t or loff_t.

But the above does not cover all the facts. On Linux/x86_64, off_t is
64 bit too. The library has things like _FILE_OFFSET_BITS,
__USE_FILE_OFFSET64 and typedef __off64_t off_t, check
/usr/include/unistd.h.

>  to recompile Postfix in the large file model.

Is Postfix has a large file model?

>
>  However, that may or may not be sufficient. You may also have to
>  to recompile libraries that Postfix depends on in the large file
>  model.

I think the pre-built libraries in an amd64 distro are already done so.

So my proposal is using long for var_mailbox_limit et al in order to
get rid of the 2G limit on amd64. And if that is acceptable, I'd like
to try.
-- 
Qi Yong

           reply	other threads:[~2008-03-04  3:08 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20080303180437.B33A51F3E9A@spike.porcupine.org>]

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=2cd57c900803031908p376f86fx54aa74302e8b2b18@mail.gmail.com \
    --to=qiiyoong@gmail.com \
    --cc=lesanti@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=postfix-devel@postfix.org \
    --cc=qiyong@fc-cn.com \
    /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®