Re: rbd create error with 0.26

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

 



>> BTW, I have 2 question:
>> 1. Â In these scenario, after I execute "cclass -a" and "ceph class
>> activate rbd 1.3", ÂI need to wait for several second before create
>> rbd, otherwise, "librbd: failed to assign a block name for image" will
>> come out. Is this all right?
>
> For 0.27 and previous, yes. ÂThe class distribution has removed in v0.28
> and it is now the administrator's (make install's, dpkg's, rpm's)
> responsibility to put the .so in the right directory. ÂThis is much
> simpler all around and easier to debug. ÂIf you are still having any class
> loading problems you should try the 'next' branch which will soon become
> v0.28.

OK,  I'll try v0.28.
How to enable the debug of the libs (librbd, librados....)? I debug
testlibrbd in gdb to see the backtrace, but can't got the context in
the libs.


>> 2. Â I run some test with a modified testlibrbd.c, code add like:
>>
>> gettimeofday(&tv1, NULL);
>> Â for (i = 0; i < num_test; i++)
>> Â Â write_test_data(image, test_data, TEST_IO_SIZE * i, TEST_IO_SIZE);
>> gettimeofday(&tv2, NULL);
>> t1 = tv2.tv_sec-tv1.tv_sec;
>> temp = (float)t1 + (tv2.tv_usec-tv1.tv_usec)/1000000.0;
>> speed = 1.0*TEST_IO_SIZE*num_test/temp/1024/1024;
>> printf("time used: temp=%.3f\n", temp);
>> printf("write speed: %.2f MB/s\n", speed);
>>
>> The result I got is so slowly:
>> time used: temp=46.611
>> write speed: 0.21 MB/s
>> time used: temp=14.706
>> read speed: 0.68 MB/s
>> time used: temp=45.453
>> aio write speed: 0.22 MB/s
>> time used: temp=14.759
>> aio read speed: 0.68 MB/s
>>
>> But while the test, some cosd process is running with high CPU usage.
>
> What is the IO size? ÂIs write_test_data synchronous?
>
> For simple write benchmarking you can also use
>
> Â Â Â Ârados mkpool foo
> Â Â Â Ârados -p foo bench <seconds> write -b <blocksize> -t <threads>
>
> and you'll see latency and throughput. ÂBlocksize defaults to 4M and
> "threads" (parallel IOs) default to 16, IIRC.

The IO size is TEST_IO_SIZE=512,  write_test_data is just synchronous,
it call the rbd_write( ) function.
aio write speed is 0.22 MB/s which called rbd_aio_write() function.
aio read speed is 0.68 MB/s which called  rbd_aio_read() function.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux