Operating System - HP-UX
1748179 Members
3930 Online
108758 Solutions
New Discussion юеВ

Re: buffer size requested is too large

 
Piyush S
Advisor

buffer size requested is too large

Hi All

I have a small problem. I have a C8000 W/S with CAE applications installed. In one of the application, when i try to run a command on a 300-500 MB file which will convert into another format, i get the error "The buffer size requested is too large."

Can anybody let me know whether this can be solved by changing any Kernel parameter.

Thanks & Regards
Piyush
11 REPLIES 11
Dennis Handly
Acclaimed Contributor

Re: buffer size requested is too large

Unfortunately you would have to know who is producing that message and what you need to do when you get it. It could mean that it tries to malloc a big bufffer and can't get it. Here you might be able to solve it by making maxdsiz bigger.

It would have been nice if the message had the size that was too big if a fixed limit, what that was too.
Steven E. Protter
Exalted Contributor

Re: buffer size requested is too large

Shalom Piyush,

That error message is from the application, not the system. The application vendor is going to need to tell you the proper response.

You are probably short of memory, but I can't make a good recommendation without input from the app vendor.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Emil Velez
Honored Contributor

Re: buffer size requested is too large

probably the item is coming based on the kernel parameter maxdsize or shmmax

Check those values and check the application documentation whether it recommends these parameters get bumpsed up.

Good luck
Piyush S
Advisor

Re: buffer size requested is too large

I dont think that there is a memory shortage as i have 4 GB of RAM and 4 GB of swap space available. And much of that is free when this error occured

Regds
Piyush
Dennis Handly
Acclaimed Contributor

Re: buffer size requested is too large

>I dont think that there is a memory shortage as i have 4 GB

Unless this is a 64 bit application or linked with -N, a process can only use 1 Gb.
A. Clay Stephenson
Acclaimed Contributor

Re: buffer size requested is too large

UNIX doesn't care how much physical memory you have; it only cares about how much virtual memory you have. You could very easily be hitting a maxdsiz limit. What is the current value of maxdsiz?
If it ain't broke, I can fix that.
Eric Antunes
Honored Contributor

Re: buffer size requested is too large

Hi,

To check on those previously refered kernel parameters, do as root:

#kmtune -lq maxdsize
#kmtune -lq shmmax

Eric
Each and every day is a good day to learn.
Dennis Handly
Acclaimed Contributor

Re: buffer size requested is too large

>#kmtune -lq maxdsize

It helps if you spell it correctly, maxdsiz. :-)
And use kctune on 11.23.
Piyush S
Advisor

Re: buffer size requested is too large

Hi the output of the above command is as below

# kmtune -lq maxdsiz
Parameter: maxdsiz
Current: 3221225472
Planned: 3221225472
Default: 0x10000000
Minimum: -
Module: -
Version: -
Dynamic: No
# kmtune -lq shmmax
Parameter: shmmax
Current: 2147483648
Planned: 2147483648
Default: 0X4000000
Minimum: -
Module: -
Version: -
Dynamic: Yes
#

Thanks