Re: FIO - Client and Server - Suggestion

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

 



>>>> I found what is happening
>>>>
>>>> If I use a non absolute path it works: the remote config should be on
>>>> the
>>>> same directory with fio
>>>>
>>>>
>>>> Nossa Senhora:fio.patch neto$ ./fio --client 10.61.109.151
>>>> --remote-config
>>>> conf3
>>>>
>>>>
>>>>
>>>> If I specify an absolute path, it does not work
>>>>
>>>> Nossa Senhora:fio.patch neto$ ./fio --client 10.61.109.151
>>>> --remote-config
>>>> /root/fio.patch/conf3
>>>> hostname=s1, be=0, 64-bit, os=Linux, arch=x86-64,
>>>> fio=fio-2.1.13-31-g15e3,
>>>> flags=1
>>>>
>>>>
>>>> Do you think we could fix it to make sure we can use --remote-config
>>>> with
>>>> an absolute path?
>>>
>>> That's very odd, there should be nothing special about it. If I do
>>>this:
>>>
>>> axboe@lenny:/home/axboe/git/fio $ stat /root/x.fio
>>> stat: cannot stat Œ/root/x.fio¹: Permission denied
>>> $ ./fio --client=localhost --remote-config /root/x.fio
>>>
>>> and run
>>>
>>> axboe@lenny:/home/axboe/git/fio $ sudo strace -o x -f ./fio --server
>>> fio: server listening on 0.0.0.0,8765
>>>
>>> and then look at the x strace output file, it all looks fine:
>>>
>>> 28632 recvfrom(4, "\v\0\1\0/root/x.fio", 15, MSG_WAITALL, NULL, NULL) =
>>> 15
>>> 28632 open("/root/x.fio", O_RDONLY)     = 5
>>>
>>> which is all find and dandy. Fio just passes the string of the
>>>filename,
>>> and the server just does an fopen on that passed in file. So please run
>>> the same experiment on your end with an strace of the server and the
>>> arguments you used on the client, I'd like to see that.
>>>
>>> --
>>> Jens Axboe
>>>
>>
>> Hi Jens,
>>
>> This is neto from Brazil
>>
>> How are you?
>>
>> It's very strange....
>>
>> I have applied the patch again... Make clean, make and it's working now
>>:-(
>>
>> On linux it's working
>>
>> But I applied the patch on my mac, but it's not working
>>
>> Nossa Senhora:fiop neto$ patch < net-remote-config.patch
>> (Stripping trailing CRs from patch.)
>> patching file client.c
>> (Stripping trailing CRs from patch.)
>> patching file client.h
>> (Stripping trailing CRs from patch.)
>> patching file init.c
>> (Stripping trailing CRs from patch.)
>> patching file server.c
>> (Stripping trailing CRs from patch.)
>> patching file server.h
>>
>>
>>
>> Nossa Senhora:fiop neto$ ./fio --client 10.61.109.151 --remote-config
>> /root/fiop/model
>> Nossa Senhora:fiop neto$
>>
>>
>>
>> Could you please make the changes to github and I will download form
>> there. Something is not right here with the patch.
>
>Always ensure that you make clean, might be the same on the mac. In any
>case, it's committed, but it a separate branch. So when pulling, you
>need to checkout the remote-config branch. Once it's fully done, I will
>pull it into the master branch.
>
>
>-- 
>Jens Axboe
>


Hi Jens,

This is neto from Brazil

How are you?

Git clone the remote-config branch.... But get an error when trying to
compile

Nossa Senhora:fio.patch neto$ make V=1
gcc  -std=gnu99 -Wwrite-strings -Wall -Wdeclaration-after-statement -O3 -g
-ffast-math  -D_GNU_SOURCE -include config-host.h -DBITS_PER_LONG=64
-DFIO_VERSION='"fio-2.1.13-41-gc05da"' -o fio gettime.o ioengines.o init.o
stat.o log.o time.o filesetup.o eta.o verify.o memory.o io_u.o parse.o
mutex.o options.o lib/rbtree.o smalloc.o filehash.o profile.o debug.o
lib/rand.o lib/num2str.o lib/ieee754.o crc/crc16.o crc/crc32.o
crc/crc32c-intel.o crc/crc32c.o crc/crc64.o crc/crc7.o crc/fnv.o crc/md5.o
crc/murmur3.o crc/sha1.o crc/sha256.o crc/sha512.o crc/test.o crc/xxhash.o
engines/cpu.o engines/mmap.o engines/sync.o engines/null.o engines/net.o
memalign.o server.o client.o iolog.o backend.o libfio.o flow.o cconv.o
lib/prio_tree.o json.o lib/zipf.o lib/axmap.o lib/lfsr.o gettime-thread.o
helpers.o lib/flist_sort.o lib/hweight.o lib/getrusage.o idletime.o
td_error.o profiles/tiobench.o profiles/act.o io_u_queue.o filelock.o
lib/tp.o lib/bloom.o engines/posixaio.o fio.o lex.yy.o y.tab.o -ll -lz
-lm  -lpthread -ldl
ld: can't open output file for writing: fio, errno=21 for architecture
x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [fio] Error 1






>

��.n��������+%������w��{.n�������^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux