上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页

[摘录] 图灵机与lambda演算的关系

摘要: 在阅读函数式编程相关资料时,看到如下一段话。感觉说的很好,可以帮助我这种学渣一点点的建立起整个知识体系。 以下片段,摘抄自豆瓣网友 赛义甫 的豆列 “逻辑与计算” 中的一段介绍。 赛义甫的个人主页:http://id.sciencenet.cn/index.php?s=/Index/index/us 阅读全文
posted @ 2018-10-12 11:28 toong 阅读(1600) 评论(0) 推荐(0)

[java] 在linux+chrome/firefox上使用java applet

摘要: 我现在的浏览器用不了java applet,我的环境是archlinux + chrome or firefox。 java网站的指引是这样说的 https://www.java.com/zh_CN/download/help/enable_browser_ubuntu.xml 但是我没有 libn 阅读全文
posted @ 2018-09-30 14:15 toong 阅读(2262) 评论(0) 推荐(1)

[学习] 从 函数式编程 到 lambda演算 到 函数的本质 到 组合子逻辑

摘要: 函数式编程 阮一峰 《函数式编程初探》,阮一峰是《黑客与画家》的译者。 wiki 《函数编程语言》 一本好书,《计算机程序的构造与解释》有讲到scheme lisp, 不过是作为工具。重点还是再讲方法论,虽然只看了前言,已经觉得是非常好的书,非常有高度。 写这段话的人叫 艾伦佩利。他为这本书做的序, 阅读全文
posted @ 2018-09-29 15:20 toong 阅读(2105) 评论(0) 推荐(0)

[学习]鲁棒性

摘要: 百度百科,鲁棒性:https://baike.baidu.com/item/%E9%B2%81%E6%A3%92%E6%80%A7/832302?fr=aladdin 个人理解有两层含义: 1. 系统工程中,系统的稳定性。在接受到暴力的恶意的输入时,是否保持原有的功能,性能。 分为稳定鲁棒性,性能鲁 阅读全文
posted @ 2018-09-22 16:29 toong 阅读(368) 评论(0) 推荐(0)

[学习][笔记]因果推断在排序学习中的应用

摘要: 因果推断的原理,可以参考盲实验。 阅读全文
posted @ 2018-09-22 16:23 toong 阅读(625) 评论(0) 推荐(0)

[数学]MIT牛人解说数学体系

摘要: 本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明网址: http://www.penglixun.com/study/science/mit_math_system.html 目录 (Contents) 1 为什么要深入数学的世界 2 集合论:现代数 阅读全文
posted @ 2018-09-19 18:12 toong 阅读(558) 评论(0) 推荐(0)

[本体论][UML][统一建模语言][软件建模][OWL]从本体论到UML到OWL

摘要: 以下内容,是关于软件建模的方法与思路。 UML与OWL都是基于本体论的建模语言。 本体论(哲学) 本体论(信息科学) UML(统一建模语言) more info 参考:[设计语言][统一建模语言][软件开发方法学][UML] UML UML知识梳理: OWL(Ontology Web Languag 阅读全文
posted @ 2018-09-18 16:03 toong 阅读(960) 评论(0) 推荐(0)

[设计语言][统一建模语言][软件开发方法学][UML] UML

摘要: 背景介绍 UML是一种统计建模语言。 WIKI: https://en.wikipedia.org/wiki/Unified_Modeling_Language UML是OMG (object management group)(国际对象管理组织(https://zh.wikipedia.org/w 阅读全文
posted @ 2018-09-14 15:31 toong 阅读(898) 评论(0) 推荐(0)

[bash] 几个以前没注意过的小知识

摘要: 1. BASH_SOURCE[0] 是啥意思,以及获取当前脚本所在目录 https://blog.csdn.net/zhaozhencn/article/details/21103367 2. :- 是什么意思? http://www.gnu.org/software/bash/manual/htm 阅读全文
posted @ 2018-09-12 10:55 toong 阅读(178) 评论(0) 推荐(0)

[dpdk][hotplug] DPDK网卡设备热插拔

摘要: dpdk pci网卡设备的热插拔。 样例程序如下: 阅读全文
posted @ 2018-09-03 18:54 toong 阅读(775) 评论(0) 推荐(0)

[dpdk][sysfs][pci] 在dpdk程序中操纵PCI设备

摘要: 〇 需求 在DPDK程序运行时,希望能够实时的操纵PCI 网卡设备的驱动绑定与解绑。 本文的目的是为了调查满足以上需求的,kernel提供的,标准的API都有几种,分别是什么。以确定实施方案。 一 背景 我们已知有三个方法: 1. dpdk_devbind.py 2. driverctl [admi 阅读全文
posted @ 2018-08-28 15:45 toong 阅读(1359) 评论(0) 推荐(0)

[knowledge][linux][sysfs] sysfs文件系统

摘要: https://en.wikipedia.org/wiki/Sysfs http://man7.org/linux/man-pages/man5/sysfs.5.html https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt 阅读全文
posted @ 2018-08-28 11:22 toong 阅读(149) 评论(0) 推荐(0)

[git] 关闭 git branch 的pager

摘要: 高版本的git做了pager的调整. git diff git log git branch 等命令都用了pager, 默认的pager用了less 在我的应用里, 通常branch只有那么3,5个. 所以用pager反而不方便. 可以用如下两个方法解决这个问题: 1. 使用命令: 2. 使用配置: 阅读全文
posted @ 2018-08-13 14:44 toong 阅读(1089) 评论(0) 推荐(0)

[administrator][driver] driverctl 是如何在udev上层管理设备驱动的

摘要: https://gitlab.com/driverctl/driverctl driverctl 处于 kernel 与 udev做设备与驱动管理的上层. 理解什么叫override是本文的核心内容. 作者为什么该参数起名叫override而不叫driver呢? @20180828: overrid 阅读全文
posted @ 2018-07-30 11:15 toong 阅读(796) 评论(0) 推荐(0)

[dpdk] dpdk编译成动态库使用 -- PCI port自动发现与pmd动态加载

摘要: 1. 修改配置文件 .conf, 设置如下变量的值. 2. 这个时候, 再编译的 dpdk app就会自动链接dpdk的动态库. 如下: 3. 但是与static的时候对比, 你会发现有如下的问题: 用static链接的时候, rte_init的时候,会扫描所有的PCI设备,找到所有可用的port, 阅读全文
posted @ 2018-07-25 16:54 toong 阅读(5916) 评论(0) 推荐(1)

[python2] python 打印表格 prettytable

摘要: rpm包: 官网: https://code.google.com/archive/p/prettytable/ 文档: https://code.google.com/archive/p/prettytable/wikis/Tutorial.wiki 小例子: 输出: 阅读全文
posted @ 2018-07-18 19:49 toong 阅读(986) 评论(0) 推荐(0)

[centos][ntp][administrator] chrony ntp

摘要: 以下内容,适用于 CentOS 7 (systemd 体系) 一。 首先,确认你是否启用了 ntp 服务: 二。 确认你的时区,是不是你的时区,见 (一) 如果不是,这样改: 三。确定你用了哪个ntp util 目前常用的,有两个: ntp和chrony。按理说,你至少应该装了一个 四。服务是否启用 阅读全文
posted @ 2018-07-17 18:38 toong 阅读(219) 评论(0) 推荐(0)

[dpdk][kni] dpdk kernel network interface

摘要: 文档:https://doc.dpdk.org/guides/prog_guide/kernel_nic_interface.html 摘要: API:https://doc.dpdk.org/api/rte__kni_8h.html 特别注意: 看下源码,就理解了。。。。。 懒得解释了。。。。 例 阅读全文
posted @ 2018-07-17 17:55 toong 阅读(304) 评论(0) 推荐(0)

[administrator][netctl] 给未插线未UP端口设置IP

摘要: 以下内容均为使用netctl配置工具前提下: 需求: Tstation管理口做日常使用。没有千兆交换。所以加一个一块千兆的卡。这块卡是为了做数据传输专用的。 目前主要就是每周给T7备份使用。但是由于是直连。所以每次都是彼此up之后在互相设置IP。今天想给Tstation的这个口elan0做好配置不动 阅读全文
posted @ 2018-07-14 21:41 toong 阅读(416) 评论(0) 推荐(0)

[administrator] rpmbuild

摘要: rpmbuild 1. rpm是什么 RPM = RPM Package Manager = Redhat Package Manager https://en.wikipedia.org/wiki/Rpm_(software) 2. two forks 1. RPM.org redhat 维护的, 阅读全文
posted @ 2018-07-13 21:56 toong 阅读(1056) 评论(0) 推荐(0)

OWA (Office Web Access)

摘要: exchange的web网页,可以enrich的打开,用起来还行outlook一样。 同事的chrome(under windows) 默认就是i这样的。也没装插件,也没有怎样。 我的chrome(under archlinux) 则不行,版本号几乎一致。 怎么办?? 装个插件:https://ch 阅读全文
posted @ 2018-07-06 19:55 toong 阅读(943) 评论(0) 推荐(0)

[network] netfilter

摘要: netfilter 是什么? https://www.netfilter.org/ HOOK HOWTO: https://www.netfilter.org/documentation/HOWTO//netfilter-hacking-HOWTO.html 阅读之前: Packet Filteri 阅读全文
posted @ 2018-06-29 19:10 toong 阅读(292) 评论(0) 推荐(0)

[https][ssl] keyless SSL

摘要: HTTP Server 集群前的负载设备,或内容审计设备等,在处理https的时候,需要用户配置提供证书。 但是考虑到安全问题,HTTP Server并不愿意把证书配置到其他设备上。 这个时候,就有个 keyless SSL方案。 简单的说,如下: 1. client与中间设备建立TCP链接。 2. 阅读全文
posted @ 2018-06-29 17:46 toong 阅读(648) 评论(0) 推荐(0)

[network] IPVS / Load balancer / Linux Virtual Server

摘要: Load Balancer IPVS: http://kb.linuxvirtualserver.org/wiki/IPVS NAT: http://kb.linuxvirtualserver.org/wiki/LVS/NAT VIP: http://kb.linuxvirtualserver.or 阅读全文
posted @ 2018-06-28 21:43 toong 阅读(271) 评论(0) 推荐(0)

[archlinux] 迁移T7从T460s到T470

摘要: 这已经不是第一次做OS的迁移了,T7早已经迁移过多台设备了。所以,其实只需要如下三步: 1. rsync 我一直有全系统备份的习惯,T7一直会不定期的全系统rsync到Tstation上面去。所以我只需要将最新的T7 rsync进Tstattion,在从Tstation将T7 rsync进T470, 阅读全文
posted @ 2018-06-17 19:28 toong 阅读(1152) 评论(0) 推荐(0)

你真的知道什么是终端吗?

摘要: 转载: https://www.linuxdashen.com/%E4%BD%A0%E7%9C%9F%E7%9A%84%E7%9F%A5%E9%81%93%E4%BB %80%E4%B9%88%E6%98%AF%E7%BB%88%E7%AB%AF%E5%90%97%EF%BC%9F 终端(Termi 阅读全文
posted @ 2018-06-04 14:29 toong 阅读(3515) 评论(0) 推荐(1)

lua

摘要: http://www.runoob.com/lua/lua-tutorial.html http://www.runoob.com/manual/lua53doc/ https://www.lua.org/docs.html 阅读全文
posted @ 2018-06-01 17:04 toong 阅读(190) 评论(0) 推荐(0)

[性能优化] perf 高级用法:完整记录程序性能指标,并按照时间段对程序进行有针对性的性能分析

摘要: 如题: 假设你已经熟悉了基本用法,知道perf是干嘛的,以及会用 perf top [性能优化] perf 背景:目标程序在运行的某时间段内会出现性能下降,需要了解这个时间内,程序发生了什么。 方法: 1. 按时间轴记录下性能变化数据。 2. 同时记录下当时的perf数据,使用perf record 阅读全文
posted @ 2018-05-29 16:08 toong 阅读(8510) 评论(3) 推荐(0)

[性能优化] perf

摘要: 运行时性能分析工具 wiki:https://en.wikipedia.org/wiki/Perf_(Linux) linux wiki:https://perf.wiki.kernel.org/index.php/Main_Page tutorial:https://perf.wiki.kerne 阅读全文
posted @ 2018-05-29 10:49 toong 阅读(550) 评论(0) 推荐(0)

[ovs] openvswitch ovs ovs-vsctl ovs-appctl 命令行参数自动补全 bash bash-completion

摘要: 1, 安装bash_completion: 2, 找到你的ovs的补全脚本装在了哪里 3, source 他们 把如下行 追加进 ~/.bashrc https://github.com/scop/bash-completion 阅读全文
posted @ 2018-05-22 13:56 toong 阅读(655) 评论(0) 推荐(0)

[ovs][dpdk] ovs-dpdk, dpdk port 大量丢包

摘要: gdb了ovs的代码,发现是 dpdk的imiss计数在不断的丢包。 看了ovs-openvswitchd的日志,重启时发现如下行: 开启debug 重装新版dpdk 1. 编译dpdk 2. 编译ovs 3. 运行 4. 配置 5. 绑定dpdk core 6. 不丢包了。 7. vhost us 阅读全文
posted @ 2018-05-22 13:18 toong 阅读(3532) 评论(0) 推荐(1)

take a cpu core offline

摘要: https://www.cyberciti.biz/faq/debian-rhel-centos-redhat-suse-hotplug-cpu/ 阅读全文
posted @ 2018-05-21 14:22 toong 阅读(740) 评论(0) 推荐(0)

[dpdk] 使用pktgen生成tcp三次握手的测试流量

摘要: pktgen: http://dpdk.org/browse/apps/pktgen-dpdk/refs/ pktgen doc:http://pktgen-dpdk.readthedocs.io/en/latest/ OS:Linux D128 3.10.0-693.el7.x86_64 OS2: 阅读全文
posted @ 2018-05-18 19:00 toong 阅读(3295) 评论(0) 推荐(0)

[ovs][dpdk] ovs-dpdk 线程数,收包队列,core绑定

摘要: http://docs.openvswitch.org/en/latest/intro/install/dpdk/?highlight=dpdk 绑定2,4,6, 8核 设置4个收包队列 增加描述符个数 https://docs.openvswitch.org/en/latest/topics/dp 阅读全文
posted @ 2018-05-16 21:03 toong 阅读(1958) 评论(0) 推荐(0)

[ovs][libvirt][virtio][qemu] vhost user client 排障

摘要: ovs-dpdk + qemu 使用vhostuserclient通信,连路不通,libvirt报错如下: 在libvirt的xml里增加一行: 对应的qemu命令增加了: 排障成功。 参考: http://docs.openvswitch.org/en/latest/topics/dpdk/vho 阅读全文
posted @ 2018-05-09 14:45 toong 阅读(2399) 评论(0) 推荐(0)

[ovs] ovs开启日志debug

摘要: 如题 https://linux.cn/article-6134-1.html 阅读全文
posted @ 2018-05-08 18:24 toong 阅读(726) 评论(0) 推荐(0)

[ovs] openvswitch 入门

摘要: https://www.sdnlab.com/sdn-guide/14747.html http://sdnhub.cn/index.php/openv-switch-full-guide/ http://www.rendoumi.com/open-vswitchde-ovs-vsctlming-l 阅读全文
posted @ 2018-05-07 18:11 toong 阅读(676) 评论(0) 推荐(0)

pause

摘要: https://stackoverflow.com/questions/37063700/mm-pause-usage-in-gcc-on-intel?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa h 阅读全文
posted @ 2018-05-04 21:55 toong 阅读(130) 评论(0) 推荐(0)

>>>>>>>> [ovs][libvirt] virt-xml ovs-vsctl

摘要: 查看可用的参数: 添加两个vhostuser的网卡 删除所有类型为bridge的网卡 设置OVS-dpdk 设置 vhostuser port 编译qemu 设置ovs-dpdk port [root@vrouter1 ~]# dpdk-devbind -b vfio-pci eth0 [root@ 阅读全文
posted @ 2018-05-04 21:53 toong 阅读(612) 评论(0) 推荐(0)

[dpdk] TSC , HPET, Timer, Event Timer,RDTSCP

摘要: 关于dpdk timer跨越CPU core调度的准确性问题 首先dpdk的timer接口里边使用 cpu cycle来比较时间。根据之前的内容 [dpdk] dpdk --lcores参数 当一个EAL thread映射在多个processor上的时候,cpu cycle有可能在不同的CPU co 阅读全文
posted @ 2018-05-03 20:15 toong 阅读(2062) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页