Перейти к содержимому
Калькуляторы

passilka

Новичок
  • Публикации

    3
  • Зарегистрирован

  • Посещение

О passilka

  • Звание
    Абитуриент
    Абитуриент

Контакты

  • ICQ
    Array

Посетители профиля

Блок посетителей профиля отключен и не будет отображаться другим пользователям

  1. При запуске множество ошибок: EAL: Error reading from file descriptor 18: Input/output error EAL: Error reading from file descriptor 18: Input/output error EAL: Error reading from file descriptor 18: Input/output error EAL: Error reading from file descriptor 18: Input/output error EAL: Error reading from file descriptor 18: Input/output error EAL: Error reading from file descriptor 18: Input/output error EAL: Error reading from file descriptor 18: Input/output error Лог extFilter: Конфиг extFilter: Проц такой Есть вопросы: Как высчитать flowhash_size для трафа в 200Мбит/с? Поддерждивает ли extFilter num_of_workers отличный от 1? В моём случае процессора core_mask используется по умолчанию (закоментировано в конфиге), а 7(10)=0111(2), и поэтому заранее в tuned.conf isolcpus=1,2,3, т.е. зарезервировано три ядра для dpdk. Так?
  2. ОК. Сделал так: [root@extFilter ~]# /usr/src/dpdk-stable-16.11.1/tools/dpdk-devbind.py --status Network devices using DPDK-compatible driver ============================================ 0000:02:00.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio unused=e1000 Network devices using kernel driver =================================== 0000:03:00.0 'VMXNET3 Ethernet Controller' if=ens160 drv=vmxnet3 unused=igb_uio *Active* 0000:0b:00.0 'NetXtreme BCM5719 Gigabit Ethernet PCIe' if=ens192 drv=tg3 unused=igb_uio Other network devices ===================== <none> Crypto devices using DPDK-compatible driver =========================================== <none> Crypto devices using kernel driver ================================== <none> Other crypto devices ==================== <none> [root@extFilter ~]# При попытке запуска ошибка /usr/src/extfilter/src/extFilter --config-file=/usr/src/extfilter/etc/extfilter.ini ... EAL: Error reading from file descriptor 14: Input/output error EAL: Error reading from file descriptor 14: Input/output error EAL: Error reading from file descriptor 14: Input/output error ... Конфиг [root@extFilter ~]# cat /usr/src/extfilter/etc/extfilter.ini ; Переводить имя хоста в прописные буквы. Если url_normalization установлен в true, то не имеет значения. lower_host = true domainlist = /root/domains urllist = /root/urls ssllist = /root/ssl_host hostlist = /root/hosts ; Файл с портами для nDPI. ;protocols = /root/protos ; Список ip адресов/сетей для блокировки ssl если нет server_name в ssl hello пакете. Загружается если block_undetected_ssl = true. sslips = /root/ssl_ips ; если false, то будет послан rst пакет вместо редиректа. Default: false http_redirect = true redirect_url = http://gsglobalcom.ru/block.html ; HTTP код ответа. default: 302 Moved Temporarily http_code = 302 Found ; Что добавлять в redirect_url, line - строка из файла url, url - запрещенный url, none - ничего url_additional_info=none ; посылать tcp rst в сторону сервера от имени клиента. Default: false rst_to_server = true ; Default: 0 - disable statistic_interval = 300 ; Default: false match_url_exactly = false ; Default: false block_undetected_ssl = false ; dpdk порт, где анализировать трафик dpdk_port = 0 ; dpdk порт(ы), где анализировать трафик ;dpdk_ports = 0,1 ; размер пула mbuf. Default: 8191 ;mbuf_pool_size = 8191 ; количество потоков по анализу трафика ;num_of_workers=1 ; Какие ядра использовать. Default: все ядра, кроме management. core_mask = 3 ; файл статистики (для extfilter-cacti) statisticsfile = /var/run/extFilter_stat ; mtu на интерфейсе для отправки пакетов в сторону абонентов. Default: 1500 ; out_mtu = 1500 ; Количество flow, обрабатываемых программой. Должно быть кратно 2. ; flowhash_size = 1048576 ; количество тредов для отсылки уведомлений о блокировке ; num_of_senders = 1 ; делать ли нормализацию url url_normalization = true ; удалять ли точку в конце имени хоста remove_dot = true [logging] loggers.root.level = information ;loggers.root.level = debug loggers.root.channel = fileChannel channels.fileChannel.class = FileChannel channels.fileChannel.path = /var/log/extFilter.log channels.fileChannel.rotation = 1 M channels.fileChannel.purgeCount = 4 channels.fileChannel.archive = timestamp channels.fileChannel.formatter.class = PatternFormatter channels.fileChannel.formatter.pattern = %Y-%m-%d %H:%M:%S.%i [%P] %p %s - %t channels.fileChannel.formatter.times = local[root@extFilter ~]# В логе: [root@extFilter ~]# cat /var/log/extFilter.log 2017-03-20 16:04:46.384 [1126] Information Application - Setting mbuf size to 8191 2017-03-20 16:04:46.544 [1126] Information Application - Master core is 0 2017-03-20 16:04:46.544 [1126] Fatal Application - Minimum number of required cores is 3 2017-03-20 16:27:38.812 [1181] Information Application - Setting mbuf size to 8191 2017-03-20 16:27:39.942 [1181] Information Application - Master core is 0 2017-03-20 16:27:39.942 [1181] Fatal Application - Minimum number of required cores is 3 2017-03-20 16:40:45.857 [2296] Information Application - Setting mbuf size to 8191 2017-03-20 16:41:35.596 [2297] Information Application - Setting mbuf size to 8191 2017-03-20 16:41:36.403 [2297] Information Application - Master core is 0 2017-03-20 16:41:36.403 [2297] Fatal Application - Minimum number of required cores is 3 2017-03-20 16:59:45.074 [2360] Information Application - Setting mbuf size to 8191 2017-03-20 16:59:46.338 [2360] Information Application - Master core is 0 2017-03-20 16:59:46.338 [2360] Fatal Application - Minimum number of required cores is 3 [root@extFilter ~]# В моей ВМ 2 vCPU. Это занчит надо: 1). добавить ядра в ВМ? 2). переделать маску core_mask?
  3. Подключил к ВМ сетевую карту Intel e1000 (виртуализированна ESXi). И пробросил Broadcom BCM5719 напрямую в ВМ через DirectPath I/O. Как узнать, поддерживает ли DPDK BCM5719? [root@extFilter ~]# /usr/src/dpdk-stable-16.11.1/tools/dpdk-devbind.py --status Network devices using DPDK-compatible driver ============================================ 0000:02:00.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio unused=e1000 0000:0b:00.0 'NetXtreme BCM5719 Gigabit Ethernet PCIe' drv=igb_uio unused=tg3 Network devices using kernel driver =================================== 0000:03:00.0 'VMXNET3 Ethernet Controller' if=ens160 drv=vmxnet3 unused=igb_uio *Active* Other network devices ===================== <none> Crypto devices using DPDK-compatible driver =========================================== <none> Crypto devices using kernel driver ================================== <none> Other crypto devices ==================== <none> Собрал extFilter. При проверке доступных портов показывает что их нет /usr/src/extfilter/src/extFilter -l Setting mbuf size to 8191 DPDK ports not specified! Exception: DPDK ports not specified! [root@extFilter ~]#