Author |
Message
|
PeterPotkay |
Posted: Thu May 19, 2005 5:12 pm Post subject: /var/mqm and large files option |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
In most of the UNIX Quick Beginnings, you will find the comment:
Quote: |
If you want to use individual queues that will hold more than 2 GB of data, you must enable /var/mqm to use large files.
|
What error would you get if you tried to put more than 2 GIG of data to a queue?
What is the drawback to setting that option for var/mqm?
Once it is set, how much data can a queue hold? Until your disk fills, or MaxQDepth is hit? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
sebastianhirt |
Posted: Fri May 20, 2005 2:14 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Hi Peter,
From the MQ Admin II workshop:
The maximum size of a queue file can be 1GB.
The cost of that is that MQ is using more shared memory ressources.
My thoughts about that:
If the queue file can only be 1 GB, why can a queue hold (at least) 2 GB of data? I mean if you put 2 GB of persistent messages to a queue, then all of them are written to the queue file.
They say support pac MP01 is giving information about the tuning of queue limits. I would guess, that there are also limits mentioned. If I find some time in the afternoon, I think I'll read it up.
If you can put until your filesystem is full, and you have a 3 TB filesystem.... How long can your system handle that? I guess some of the filesystems would have a hard time addressing a 3TB file. (OK my example might be a bit over the top, but anyway )
my 2 cents
Sebastian |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri May 20, 2005 3:09 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I think that "enable /var/mqm to use large files" means "configure the OS to allow the queue files to be larger than 1GB".
I don't know the performance impacts of doing this.
I do know that I would prefer to do this for all systems, rather than find out what happens to the OS when MQ tries to write a file that's bigger than the OS allows it to be. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
PGoodhart |
Posted: Fri May 20, 2005 3:36 am Post subject: |
|
|
Master
Joined: 17 Jun 2004 Posts: 278 Location: Harrisburg PA
|
I believe they are refering to the hard and soft limits set on the user id by the OS. This is really an OS setting, and may be different from UNIX to UNIX. On AIX the commands to view the settings are:
"Soft limits"
ulimit -Sa
"Hard limits"
ulimit -Ha
These should be run as the user that runs mq. _________________ Patrick Goodhart
MQ Admin/Web Developer/Consultant
WebSphere Application Server Admin |
|
Back to top |
|
 |
sjensen |
Posted: Fri May 20, 2005 3:43 am Post subject: |
|
|
Centurion
Joined: 18 Dec 2003 Posts: 134 Location: London
|
Hi,
I beleive on Solaris you must mount the /var/mqm/qmgrs/$QMGR_name subdirectories with the largefiles option.
Cheers
Stefan |
|
Back to top |
|
 |
markt |
Posted: Fri May 20, 2005 3:47 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
>> I think that "enable /var/mqm to use large files" means "configure the OS to allow the queue files to be larger than 1GB".
Yes it means exactly this.
Performance aspects are going to vary by OS, but I know on AIX it's not significant. It's a config option on the OS because it normally affects things like block size and inode allocations on the filesystem. So a filesystem supporting large files might not be as efficient if you were to try to have very very many small files. But that's not a normal pattern for MQ storage so it doesn't matter there.
MQ will generate an immediate MQRC value and/or an FDC when it recognises it cannot write a larger file - much the same as if it ran out of space on the disk.
Once enabled you can get 1TB in a queue. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri May 20, 2005 7:42 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
I got some new Linux servers coming, with 100GB allocated to /var/mqm.
I think I will ask the SA to turn this option on.
20,000 100K messages are going to hit the 2 GB limit, and nowadays, for some batch processing, that is not a lot of messages. I would rather limit the # of messages on a queue by specifically setting the Max queue attributes, versus having the OS complain about the q being to deep. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|