source code for connection establishment

2009-12-01 Thread Jack Z
Hi all, I'm a CS student and I'm trying to understand and locate the source code for iSCSI connection establishment. But I encountered the following problem. Could anyone maybe show me where I should go? Any help would be highly appreciated!! 1. I searched in the entire open-iscsi project and

Re: is loopback supported by open-iscsi?

2009-12-21 Thread Jack Z
Just tried on another machine the loopback works very well. There must be something I missed in the previous one... Jack On Dec 21, 2:56 pm, Jack Z brianzhang2...@gmail.com wrote: Hi all, I'm working on a loopback with open-iscsi initiator and iscsi enterprise target. I tried using a .img

device on loopback does not show up?

2009-12-21 Thread Jack Z
Hi all, I'm working on a loopback with open-iscsi initiator (2.0-871) and iscsi enterprise target(1.4.29). I tried using a .img file and a physical partition on my local hard disk as the target, but the results are the same: When logging in, everything is fine and I can see the successful

iSCSI throughput drops as link rtt increases?

2010-01-04 Thread Jack Z
Hi all, I was testing the performance of open-iscsi initiator with IET target over a 100Mbps Ethernet link with emulated rtt. What I did was to do raw disk sequential write by $ dd if=/dev/zero of=/dev/sdb bs=1024 count=1048576 , in which /dev/sdb is the iSCSI device. I also measured TCP

Re: iSCSI throughput drops as link rtt increases?

2010-01-05 Thread Jack Z
Hi Pasi, Thank you very much for your reply. I was testing the performance of open-iscsi initiator with IET target over a 100Mbps Ethernet link with emulated rtt.  What I did was to do raw disk sequential write by $ dd if=/dev/zero of=/dev/sdb bs=1024 count=1048576 Did you also try

Re: iSCSI throughput drops as link rtt increases?

2010-01-06 Thread Jack Z
not to use the large ones but went with the small ones for some reason... Do you think there might be some configurations I can play with to change this? Thanks a lot! Jack! On Jan 6, 12:03 pm, Mike Christie micha...@cs.wisc.edu wrote: On 01/04/2010 08:54 AM, Jack Z wrote: Then I used Wireshark

Re: iSCSI throughput drops as link rtt increases?

2010-01-06 Thread Jack Z
not to use the large ones but went with the small ones for some reason... Do you think there might be some configurations I can play with to have iSCSI and TCP choose to use large segments? Thanks a lot! Jack! On Jan 6, 12:03 pm, Mike Christie micha...@cs.wisc.edu wrote: On 01/04/2010 08:54 AM, Jack

Re: iSCSI throughput drops as link rtt increases?

2010-01-07 Thread Jack Z
Hi Pasi, Thank you very much for your help. I really appreciate it! On Jan 5, 12:58 pm, Pasi Kärkkäinen pa...@iki.fi wrote: On Tue, Jan 05, 2010 at 02:05:03AM -0800, Jack Z wrote: Try using some benchmarking tool that can do multiple outstanding IOs.. for example ltp disktest. And I

Re: iSCSI throughput drops as link rtt increases?

2010-01-07 Thread Jack Z
Hi Ulrich, Thanks for your reply! I was testing the performance of open-iscsi initiator with IET target over a 100Mbps Ethernet link with emulated rtt.  What I did was to do raw disk sequential write by $ dd if=/dev/zero of=/dev/sdb bs=1024 count=1048576 , in which /dev/sdb is the

iscsi device not showing up...

2010-01-12 Thread Jack Z
Hi group, The iSCSI disk just stops showing up on my computer. I'm using open-iscsi again iSCSI Enterprise Target (IET). When I do $ iscsiadm -m node T Target -p Portal --login everything is fine and the login is always successful. I also checked the records in IET, which show the login is

Re: iscsi device not showing up...

2010-01-12 Thread Jack Z
On Jan 12, 6:35 pm, Mike Christie micha...@cs.wisc.edu wrote: On 01/12/2010 06:51 PM, Jack Z wrote: Hi group, The iSCSI disk just stops showing up on my computer. I'm using open-iscsi again iSCSI Enterprise Target (IET). When I do $ iscsiadm -m node TTarget  -pPortal  --login

how does the user-land code tell the kernel-land code about the parameters?

2010-01-26 Thread Jack Z
Hi all, I have been tracing the initiator code (ver 2.0.871) and trying to understand: How does user-land code talk to the kernel-land code about the parameter settings, if they are not using the default value? Say, a larger node.conn[0].iscsi.MaxRecvDataSegmentLength? As I trace the code, I

Re: explanation of some pieces of code?

2010-01-27 Thread Jack Z
 am, Ulrich Windl ulrich.wi...@rz.uni- regensburg.de wrote: On 27 Jan 2010 at 9:59, Jack Z wrote: Hi Ulrich, Thanks for your comment. So by implement polymorphism, do you mean sk-sw_write_space is platform dependent or it does different jobs when called from different functions

Re: kernel call trace after successfully logging into our portal

2010-05-03 Thread Jack Z
By offline, did you mean the disk was offline on the target side? if so, do you know what type of target you're using open-iscsi against? If that is iscsi enterprise target, you can edit the configure file / etc/ietd.conf on the target side properly and restart the target service by

Re: scatterlist size of 4096

2010-05-05 Thread Jack Z
, Jack Z wrote: Hi group, I have been tracing the code related to sending PDUs from iscsi initiator (ver 2.0-871). And through some printk()s i realize that starting from iscsi_sw_tcp_pdu_init(), all the functions using scatterlist (struct scatterlist *sg) seem to use 4096

Re: scatterlist size of 4096

2010-05-05 Thread Jack Z
, say we copy a few pages to one buffer fist and then send them at one time? Thanks a lot! Jack On May 5, 9:26 pm, Jack Z brianzhang2...@gmail.com wrote: Hi Mike, Thank you for your help again. Following the guidance in your reply, I traced the kernel code a bit more and eventually found out

Re: scatterlist size of 4096

2010-05-06 Thread Jack Z
to send more than one sg entries per at one time, say we copy a few pages to one buffer fist and then send out that buffer through sendpage()? Thank you very much. Jack On May 6, 3:08 pm, Mike Christie micha...@cs.wisc.edu wrote: On 05/06/2010 03:53 PM, Jack Z wrote: Hi Mike, Thanks for your