Re: [ewg] Re: cannot install SCST with SRP support
Vu Pham wrote: In order to run with *scst_disk* you need to patch and rebuild the kernel. Please follow SCST readme to do this task If you don't want to patch and rebuild the kernel, you can run with *scst_vdisk* and get the same performance. I attach here an example to setup *scst_vdisk* -vu Can you please explain me what is the differences between scst_disk and scst_vdisk? Is there any way to config SCST to work with RAM device (instead of working with a real scsi device)? Thanks, Doron ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
Re: [ewg] Re: cannot install SCST with SRP support
Vu, We were able to build and run SCST on SLES 10. Now, when I try to build it for 2.6.24, I get errors: onion:/home/erezz/work/tmp/scst-srpt/scst # patch -p0 ../srpt_inc/scst_r245.patch patching file include/scsi_tgt.h patching file src/scst_targ.c onion:/home/erezz/work/tmp/scst-srpt/scst # make cd src make all make[1]: Entering directory `/home/erezz/work/tmp/scst-srpt/scst/src' make -C /lib/modules/2.6.24-smp/build SUBDIRS=/home/erezz/work/tmp/scst-srpt/scst/src BUILD_DEV=m make[2]: Entering directory `/usr/src/linux-2.6.24' LD /home/erezz/work/tmp/scst-srpt/scst/src/built-in.o CC [M] /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.o /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:50:2: warning: #warning Patch scst_exec_req_fifo-kernel-version.patch was not applied on your kernel and STRICT_SERIALIZING isn't defined. Pass-through dev handlers will not be supported. /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c: In function ‘exit_scst’: /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:1622: error: implicit declaration of function ‘DECLARE_MUTEX_LOCKED’ /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:1622: error: ‘shm’ undeclared (first use in this function) /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:1622: error: (Each undeclared identifier is reported only once /home/erezz/work/tmp/scst-srpt/scst/src/scst_main.c:1622: error: for each function it appears in.) make[3]: *** [/home/erezz/work/tmp/scst-srpt/scst/src/scst_main.o] Error 1 make[2]: *** [_module_/home/erezz/work/tmp/scst-srpt/scst/src] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.24' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/erezz/work/tmp/scst-srpt/scst/src' make: *** [all] Error 2 What is the problem here? Thanks, Erez ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
Re: [ewg] Re: cannot install SCST with SRP support
Doron Shoham wrote: Vu Pham wrote: In order to run with *scst_disk* you need to patch and rebuild the kernel. Please follow SCST readme to do this task If you don't want to patch and rebuild the kernel, you can run with *scst_vdisk* and get the same performance. I attach here an example to setup *scst_vdisk* -vu Can you please explain me what is the differences between scst_disk and scst_vdisk? scst_disk: scsi pass through module driver, using scsi mid-level interfaces to send commands scst_vdisk: simulating file and block devices as scsi luns. Using file system interfaces (fileIO) and block interfaces (blockio) to send commands Is there any way to config SCST to work with RAM device (instead of working with a real scsi device)? Yes. There are two ways 1. NULLIO or memory IO a. dd if=/dev/zero of=/tmp/tempfile bs=64k count=100 b. echo open vdisk0 /tmp/tempfile NULLIO /proc/scsi_tgt/vdisk/vdisk c. echo add vdisk0 0 /proc/scsi_tgt/groups/Default/devices 2. Using ramdisk a. echo open vdisk1 /dev/ram0 BLOCKIO /proc/scsi_tgt/vdisk/vdisk b. echo add vdisk1 1 proc/scsi_tgt/groups/Default/devices Lun 0 with NULLIO will perform better ___ ewg mailing list ewg@lists.openfabrics.org http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg