ntb.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* ntb_tool: asymmetric windows
@ 2021-11-15 16:51 Eyal ben ner
  0 siblings, 0 replies; only message in thread
From: Eyal ben ner @ 2021-11-15 16:51 UTC (permalink / raw)
  To: linux-ntb


[-- Attachment #1.1: Type: text/plain, Size: 1797 bytes --]




Hi,

Newbie question: I'm using 2 Xeon(R) Silver 4214 nodes (ntb3 hw) with 
4.19.177 kernel.

I loaded the ntb_tool modules and connected both nodes.

I created 8KB buffer on node A, I mapped a (8KB) window on node B, I wrote 
8KB file to the window and succeed to read the file completely from the 
debugfs on node A (so far, we are good).

I restarted node A buffer content.

Next, I created additional 4KB buffer on node B, then I wrote the same 8KB 
file to the same old 8KB window on node B, but now I read only 4KB on node 
A, the rest 4KB is the initialized data of the buffer.

Below I'll put the exact commands I used.

Is this a knows issue?

Any idea how to solve this issue?

 

Thanks,

Eyal

 

1st stage:

Node A:

1.      insmod ntb/test/ntb_tool.ko

Node B:

1.      insmod ntb/test/ntb_tool.ko 

Node A:

1.      export DBG_DIR=/sys/kernel/debug/ntb_tool/0000:0a:00.0

2.      cat $DBG_DIR/peer0/link

3.      echo Y > $DBG_DIR/link

4.      cat $DBG_DIR/peer0/link

Node B:

1.      export DBG_DIR=/sys/kernel/debug/ntb_tool/0000:0a:00.0

2.      cat $DBG_DIR/peer0/link

3.      echo Y > $DBG_DIR/link

4.      cat $DBG_DIR/peer0/link

Node A:

1.      echo 8192 > $DBG_DIR/peer0/mw_trans0

2.      cat 2.txt > $DBG_DIR/peer0/mw

3.      head -c 8192 $DBG_DIR/peer0/mw0 > 1s_1st_r.txt

Node B:

1.      echo 0x1000000000:8192  > $DBG_DIR/peer0/peer_mw_trans0

2.      cat 5.txt  > $DBG_DIR/peer0/peer_mw0

Node A:

1.      head -c 8192 $DBG_DIR/peer0/mw0 > 1s_2nd_r.txt

 

2nd stage:

Node B:

1.      echo 4096 > $DBG_DIR/peer0/mw_trans0

Node A:

1.      cat 2.txt > $DBG_DIR/peer0/mw0

2.      head -c 8192 $DBG_DIR/peer0/mw0 > 2s_1st_r.txt

Node B:

1.      cat 5.txt  > $DBG_DIR/peer0/peer_mw0

Node A:

1.      head -c 8192 $DBG_DIR/peer0/mw0 > 2s_2nd_r.txt

 

 

 

[-- Attachment #1.2: Type: text/html, Size: 3247 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-15 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 16:51 ntb_tool: asymmetric windows Eyal ben ner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).