Skip to content

Conversation

@dodo4898
Copy link

@dodo4898 dodo4898 commented Sep 5, 2025

[Changes]
made "pcap_module.c", which does simlar things as dpdk_moduel and psio_module
adjusted "core.c" and "io_module.c" and "config.c" to interact with pcap io engine
changed config file (1 core used, port = veth)
[progress]
Checked 20KB data transfer successfully
[Things to do]
need to work on large file transfer

Checked 20KB data transfer successfully
need to work on large file transfer
in mtcp/src ,, need to make with flags: "-DDISABLE_DPDK -DDISABLE_HWCSUM"
Problem Found:
    - in mtcp_epoll_wait, stuck at pthread_cond_wait(&ep->epoll_cond,..)
    - usr_q is empty so app thread keeps waiting
    - seems like concurrency timing issue
Problem Found:
- pcap_dispatch was bottleneck(since handle was opened for blocking I/O , mtcp thread was never returned from pcap_dipatch)
Solved:
- set pcap handle as non blocking mode

Can observe stable 100MB file tranfer between server and client
--changes
    1. reflected change on interface name and IP address
    2. removed some wasteful deep copy logic at pcap_module.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant