Re: PHP Rados failed in read operation if object size is large (say more than 10 MB )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixed 

https://github.com/gdvyas/phprados/blob/master/rados.c

Please update main source if it looks correct.

On Fri, Mar 20, 2015 at 1:11 PM, Gaurang Vyas <gdvyas@xxxxxxxxx> wrote:
If I run from command prompt it gives below error  in $piece = rados_read($ioRados, 'TEMP_object',$pieceSize['psize'] ,0);


------------------------------
Segmentation fault (core dumped)
------------------------------

I have tried new version of librados too...

------------------------------
php --ri rados

rados

Rados => enabled
Rados extension version => 0.9.3
librados version (linked) => 0.69.1
librados version (compiled) => 0.69.1
Maximum length snapshot name => 64
Maximum snapshots per pool => 256
------------------------------

Also tried new version of php too..

------------------------------
php5 -v
PHP 5.6.6-1+deb.sury.org~trusty+1 (cli) (built: Feb 20 2015 11:22:10)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

php5-fpm -v
PHP 5.6.6-1+deb.sury.org~trusty+1 (fpm-fcgi) (built: Feb 20 2015 11:27:03)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
------------------------------




On Wed, Mar 18, 2015 at 11:00 AM, Gaurang Vyas <gdvyas@xxxxxxxxx> wrote:
Used from From MASTER branch.

/etc/php5/cli/conf.d/rados.ini
rados
librados version (linked) => 0.69.0
librados version (compiled) => 0.69.0

--------------------------
Seems like the error is due to

rados_osd_op_timeout

or 

rados_mon_op_timeout




On Mon, Mar 16, 2015 at 7:26 PM, Wido den Hollander <wido@xxxxxxxx> wrote:
On 03/16/2015 01:55 PM, Gaurang Vyas wrote:
> running on ubuntu with nginx + php-fpm
>
> <?php
> $rados = rados_create('admin');
>
>
> rados_conf_read_file($rados, '/etc/ceph/ceph.conf');
> rados_conf_set($rados, 'keyring','/etc/ceph/ceph.client.admin.keyring');
>
> $temp = rados_conf_get($rados, "rados_osd_op_timeout");
> echo  "osd ";
> echo $temp;
> $temp = rados_conf_get($rados, "client_mount_timeout");
> echo  "clinet  " ;
> echo $temp;
> $temp = rados_conf_get($rados, "rados_mon_op_timeout");
> echo   "mon  " ;
> echo $temp;
>
> $err = rados_connect($rados);
> $ioRados = rados_ioctx_create($rados,'dev_whereis');
>
> $pieceSize = rados_stat($ioRados,'TEMP_object');
> var_dump($pieceSize);
>
> $piece = rados_read($ioRados, 'TEMP_object',$pieceSize['psize'] ,0);
>

So what is the error exactly? Are you running phprados from the master
branch on Github?

> echo $piece;
> ?>
>
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>


--
Wido den Hollander
42on B.V.
Ceph trainer and consultant

Phone: +31 (0)20 700 9902
Skype: contact42on
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux