EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: CAJ questions
From: "Mark Rivers" <[email protected]>
To: "Matej Sekoranja" <[email protected]>
Cc: [email protected]
Date: Wed, 5 Aug 2009 08:23:03 -0500
Hi Matej,

> (This is not optimal regarding resource allocation, but it's very  
> convenient on client side. I can put a "hard" limit there, if you  
> wish...)

I agree that it is very convenient for clients, and I am happy to keep
the current behavior.  I just wanted to make sure that I understood how
it works.

Thanks,
Mark


-----Original Message-----
From: Matej Sekoranja [mailto:[email protected]] 
Sent: Wednesday, August 05, 2009 7:12 AM
To: Mark Rivers
Cc: [email protected]
Subject: Re: CAJ questions

HI,

> I have another question about CAJ, relating to the property
> "max_array_bytes".
>
> I am not setting the "max_array_bytes" property in a properties file  
> or
> in my application.  When I call context.printInfo in my running
> application I get the following:
>
> context.printfInfo  ****************************
>
> CLASS : com.cosylab.epics.caj.CAJContext
> ADDR_LIST : localhost 164.54.160.255
> AUTO_ADDR_LIST : false
> CONNECTION_TIMEOUT : 30.0
> BEACON_PERIOD : 15.0
> REPEATER_PORT : 5065
> SERVER_PORT : 5064
> MAX_ARRAY_BYTES : 16384
>
> The value of MAX_ARRAY_BYTES is 16384, the default, as I expect.
>
> However, my application is using CAJ to read arrays that are over  
> 1.2MB
> with no errors!  Is the max_array_bytes property actually not used in
> CAJ?  It looks like it must be being ignored?

Well, CAJ does not ignore this property. It preallocates its buffers  
using MAX_ARRAY_BYTES value.
However, if server sends a bigger array it replaces buffer with newly  
allocated (bigger one).

(This is not optimal regarding resource allocation, but it's very  
convenient on client side. I can put a "hard" limit there, if you  
wish...)

Matej


References:
Re: CAJ questions Matej Sekoranja
RE: CAJ questions Mark Rivers
Re: CAJ questions Matej Sekoranja

Navigate by Date:
Prev: Re: CAJ questions Matej Sekoranja
Next: CA reconnection problem Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: CAJ questions Matej Sekoranja
Next: IOC crash when asyn traceflow turned on Shifu Xu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·