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  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Bug in camserver for Pilatus detectors with large file systems
From: Michel Staeuber <[email protected]>
To: Mark Rivers <[email protected]>
Cc: Clemens Schulze-Briese <[email protected]>, "[email protected]" <[email protected]>, support <[email protected]>, Stefan Brandstetter <[email protected]>
Date: Tue, 19 May 2015 00:38:03 +0200
Dear Mark,

Thank you very much for your investigation. We are aware of an issue with a big storage. The camserver version you own is the latest one. But there is still a storage issue with the version 121212b. I you wish, I can send you the "older" version 7.3.13-121212, which works stable in a huge storage environment.

I will hand over your investigation to our developer and discuss the differences between the version 7.3.13-121212 and 7.3.13-121212b including your fix and get back to you as soon as possible.

Please don't hesitate to contact us for further issues or queries.

Best regards,
Michel


On Mon, May 18, 2015 at 10:04 PM, Mark Rivers <[email protected]> wrote:

Folks,

 

We upgraded our disk array recently from 12TB to 24TB.  Once we did that camserver would no longer save images to that array. 

 

It gave the error message "***** Insufficient Disk Space *****" (which is rather ironic!)

 

I found and fixed the problem, which is in /p2_det/programs/tvx-7.3.13-121212b/camera/camserver/slsp2det_cam/util/interface.c

 

The problem is that the disk free size in blocks is being copied from the statfs structure (.f_bavail, where it is of type long) to a local variable of type int.

 

**********************************************************************

slsp2det_cam/util> diff -U5 interface.c.orig interface.c

--- interface.c.orig    2015-05-18 14:41:33.000000000 -0500

+++ interface.c 2015-05-18 14:42:32.000000000 -0500

@@ -1690,13 +1690,13 @@

#define TMPFS_MAGIC 0x01021994         // from statfs(2)

// MarM: loosend first requirements

//if ( ((disk_data.f_type != TMPFS_MAGIC) && ((disk_data.f_bavail - 150*n_images) <

// printf("check1: %i %i %i %i %i: %i %i %i\n",n,n_images,camera_wide,camera_high,camera_bpp,disk_data.f_blocks, disk_data.f_bavail, disk_data.f_bsize);

- int dsa = (disk_data.f_bavail);

- int overhead = 20*4096; // additional file system overhead and image header stuff

- int dsu =  n_images * ( (overhead + (camera_wide * camera_high*camera_bpp) / (8*n) ) / (disk_data.f_bsize) );

+ long dsa = (disk_data.f_bavail);

+ long overhead = 20*4096; // additional file system overhead and image header stuff

+ long dsu =  n_images * ( (overhead + (camera_wide * camera_high*camera_bpp) / (8*n) ) / (disk_data.f_bsize) );

  // printf("check2: %i < %i: %i\n", dsa,dsu,dsa<dsu);

  // if ( ( (disk_data.f_bavail - 150*n_images) <  ( (n_images/n) * (camera_wide * camera_high/disk_data.f_bsize) * (camera_bpp/8) ))  &&

  if ( (dsa<dsu)  &&

**********************************************************************

 

I asked recently if this version of TVX was the most recent, and was told that it was, so I am assuming that you have not already fixed this problem?

 

Thanks,

Mark

 

 




--
**************************************************
Michel Staeuber
Commissioning and Support

DECTRIS Ltd.
Neuenhoferstr. 107
5400 Baden
Switzerland

+41 56 500 2100 general
+41 56 500 2101 fax
+41 56 500 2172 direct
[email protected]
www.dectris.com

Don´t miss the latest developments, 
**************************************************


Confidentiality Note
This message is intended only for the use of the named recipient(s) 
and may contain confidential and/or privileged information. If you are
not the intended recipient, please contact the sender and delete the 
message. Any unauthorized use of the information contained in this 
message is prohibited. 

References:
Bug in camserver for Pilatus detectors with large file systems Mark Rivers

Navigate by Date:
Prev: Bug in camserver for Pilatus detectors with large file systems Mark Rivers
Next: Re: Problem building seq-2-2-1 on Windows Johnson, Andrew N.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Bug in camserver for Pilatus detectors with large file systems Mark Rivers
Next: EPICS web GUIs using websockets tom.cobb
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·