当前位置: 首页 > news >正文

国外做旅游攻略的网站好广告宣传

国外做旅游攻略的网站好,广告宣传,河源公司做网站,wordpress 附件路径1. 前言 这篇文章说明了如何在Linux内核中启用和配置IOMMU和SWOTLB。 当今的计算或者嵌入设备使用一种内存分区的方法进行外设的管理,如显卡、PCI设备或USB设备,都将设备映射为一段内存,用于设备的读写。 传统意义上的IOMMU用于内存映射&a…

1. 前言

这篇文章说明了如何在Linux内核中启用和配置IOMMU和SWOTLB。

当今的计算或者嵌入设备使用一种内存分区的方法进行外设的管理,如显卡、PCI设备或USB设备,都将设备映射为一段内存,用于设备的读写。

传统意义上的IOMMU用于内存映射,在系统初始化时就已设置,并且在系统运行时不能动态更改,因此有一定的局限性,所以芯片制造商(如Intel和AMD)开发了更先进的内存管理方法。

在Linux内核中,我们可以使用Intel的SWOTLB和AMD架构的其他机制来操作IOMMU。64位的系统已经能够使系统使用大量内存范围,但是这些内存需要在使用之前都需要进行映射。

2. IOMMU

近年来,制造商已经将IOMMU集成到CPU中,这也为我们升级内存速度、类型提供了便利,从而不需要再更换CPU。当然,内核仍需要设置并读取映射才能有效地使用系统内存。

2.1 使能IOMMU

IOMMU是一个硬件模块,在使用之前需要先配置使能它,具体如下所示:

Device Drivers --->

[*] IOMMU Hardware Support --->

Generic IOMMU Pagetable Support ----

[*] AMD IOMMU support

[*] Export AMD IOMMU statistics to debugfs

AMD IOMMU Version 2 driver

[*] Support for Intel IOMMU using DMA Remapping Devices

[*] Support for Shared Virtual Memory with Intel IOMMU

[*] Enable Intel DMA Remapping Devices by default

[*] Support for Interrupt Remapping

2.2 配置IOMMU

需要在内核命令行中添加以下用于控制内存映射各方面的选项,以使其生效。具体操作取决于系统的引导加载程序。常见的引导加载程序包括GRUB和Lilo。

有关引导加载程序的更多信息可以在这里找到:Category:Bootloaders - Gentoo wiki

2.2.1 Generic options

AttributeDescription and options
iommu=off This disables the IOMMU driver completely.
iommu=noforce Don't force hardware IOMMU usage when it is not needed.
iommu=force The use of the hardware IOMMU even when it is not actually needed (e.g. because < 3 GB memory).
iommu=soft Use software bounce buffering (SWIOTLB) (default for Intel machines). This can be used to prevent the usage of an available hardware IOMMU. (read bellow for Intel SWIOTLB).

2.2.2 AMD64 systems

AttributeDescription and options
amd_iommu=nofullflush,
amd_iommu=fullflush,
amd_iommu=off,
amd_iommu=force_isolation
Enable flushing of IO/TLB entries they are unmapped. Otherwise they are flushed before they will be reused, which is a lot of faster.
off = do not initialize any AMD IOMMU found in the system.
force_isolation = Force device isolation for all devices. The IOMMU driver is not allowed anymore to lift isolation requirements as needed. This option does not override iommu=pt.
amd_iommu_dump=0,
amd_iommu_dump=1
This is a boolean option: 0 = disabled, 1 = enabled
This is to dump the ACPI table for AMD IOMMU. With this option enabled, AMD IOMMU driver will print ACPI tables for AMD IOMMU during IOMMU initialization.
amd_iommu_intr=legacy,
amd_iommu_intr=vapic
Specifies one of the following AMD IOMMU interrupt remapping modes:
legacy = Use legacy interrupt remapping.
mode.vapic = Use virtual APIC mode, which allows IOMMU to inject interrupts directly into guest. This mode requires kvm-amd.avic=1. (Default when IOMMU HW support is present.)

2.2.3 Intel systems

Intel generally adopts "an-always-enable-it-if-it-is-supported" rule so most options are to turn off or disable the IOMMU functions.

AttributeDescription and options
intel_iommu=on,
intel_iommu=off
This is a boolean option: on = enabled, off = disabled.
intel_iommu=igfx_off This option turns off mapping for a graphics card and is the default state for this option. The gfx is mapped as normal device. If a gfx device has a dedicated DMAR unit, the DMAR unit is bypassed by not enabling DMAR with this option. In this case the gfx device will use physical address for DMA.
intel_iommu=forcedac With this option iommu will not optimize to look for io virtual address below 32-bit forcing dual address cycle on pci bus for cards supporting greater than 32-bit addressing. The default is to look for translation below 32-bit and if not available then look in the higher range.
intel_iommu=strict The default setting for this is disabled. This option on every unmap_single operation will result in a hardware IOTLB flush operation as opposed to batching them for performance.
intel_iommu=sp_off Super Page which is by default enabled if supported, you can turn this off using this option.
intel_iommu=ecs_off By default, extended context tables will be supported if the hardware advertises that it has support both for the extended tables themselves, and also PASID support. With this option set, extended tables will not be used even on hardware which claims to support them.

3. SWIOTLB

SWOTLB是Intel的一项技术,它有点绕过了IOMMU,并提供了一个可配置内存管理的接口。无需深入探讨其工作原理,页面表被缓存到Lookaside Buffer,减少了不断访问物理内存以进行内存映射的需求。这项技术也被称为bounce buffer,因为内存映射的物理地址保存在这个虚拟空间中,I/O在物理I/O和物理内存之间通过virtual lookaside buffer进行bounce。这使得内存映射可以快速进行,更快地提供可用的物理内存空间。

每个IO TLB称为一个“slab”,可以在内核头文件swiotlb.h中找到:

/usr/src/linux-*/include/linux/swiotlb.h

* Maximum allowable number of contiguous slabs to map,

* must be a power of 2. What is the appropriate value ?

* The complexity of {map,unmap}_single is linearly dependent on this value.

#define IO_TLB_SEGSIZE 128

* log of the size of each IO TLB slab. The number of slabs is command line

* controllable.

*

这意味着1MB将是8个slabs,作为启动参数使用的值是以slabs为单位,而不是以大小为单位。

AttributeDescription and options
swiotlb=n'th amount of slabs This specifies the amount of slabs to be used by IOTLB, each slab consists of 128K each which is 8 slabs per 1Mb(1024K), so a 64MB SWIOTLB would consist of 512 slabs. You can increase or decrease this value to allow for more buffering of virtual memory addresses in the buffer or not. Default is 64MB or 512 slabs.
swiotlb=force This option will force all system IO through the SWIOTLB so there will be no IOMMU controlled by the BIOS or the IOMMU driver elsewhere if one existed.

文章转载自:
http://lagan.c7495.cn
http://monsveneris.c7495.cn
http://bachelor.c7495.cn
http://madame.c7495.cn
http://det.c7495.cn
http://hemiacetal.c7495.cn
http://thymol.c7495.cn
http://germanophil.c7495.cn
http://bathymetrically.c7495.cn
http://interlunar.c7495.cn
http://puckish.c7495.cn
http://spectroscope.c7495.cn
http://merchantlike.c7495.cn
http://kjv.c7495.cn
http://seesaw.c7495.cn
http://rosemaled.c7495.cn
http://bombay.c7495.cn
http://illusional.c7495.cn
http://irredentist.c7495.cn
http://caffeine.c7495.cn
http://darky.c7495.cn
http://understandability.c7495.cn
http://safranine.c7495.cn
http://exode.c7495.cn
http://polyneuritis.c7495.cn
http://hypersecretion.c7495.cn
http://amity.c7495.cn
http://metapsychology.c7495.cn
http://kazatsky.c7495.cn
http://thyme.c7495.cn
http://coprecipitate.c7495.cn
http://systematize.c7495.cn
http://brickmason.c7495.cn
http://hidropoiesis.c7495.cn
http://megafog.c7495.cn
http://busload.c7495.cn
http://silphid.c7495.cn
http://antiquarianize.c7495.cn
http://cobweb.c7495.cn
http://hih.c7495.cn
http://stitches.c7495.cn
http://goodman.c7495.cn
http://epistolary.c7495.cn
http://luge.c7495.cn
http://dipsomania.c7495.cn
http://spermatologist.c7495.cn
http://pretax.c7495.cn
http://antehuman.c7495.cn
http://wasting.c7495.cn
http://symposium.c7495.cn
http://supposed.c7495.cn
http://orchectomy.c7495.cn
http://toothy.c7495.cn
http://exchequer.c7495.cn
http://sciagram.c7495.cn
http://declaratory.c7495.cn
http://working.c7495.cn
http://balladist.c7495.cn
http://blastissimo.c7495.cn
http://decasualization.c7495.cn
http://favourite.c7495.cn
http://strumous.c7495.cn
http://darkle.c7495.cn
http://serry.c7495.cn
http://conjectural.c7495.cn
http://thrace.c7495.cn
http://winehouse.c7495.cn
http://hullo.c7495.cn
http://prologue.c7495.cn
http://sympatric.c7495.cn
http://foremast.c7495.cn
http://lampblack.c7495.cn
http://slosh.c7495.cn
http://beaut.c7495.cn
http://camphine.c7495.cn
http://pathology.c7495.cn
http://cornland.c7495.cn
http://not.c7495.cn
http://germiston.c7495.cn
http://homophyly.c7495.cn
http://cashbox.c7495.cn
http://organum.c7495.cn
http://septum.c7495.cn
http://peashooter.c7495.cn
http://corrade.c7495.cn
http://coalification.c7495.cn
http://dern.c7495.cn
http://calcutta.c7495.cn
http://oversleeve.c7495.cn
http://powellism.c7495.cn
http://vitamine.c7495.cn
http://juliet.c7495.cn
http://peptalk.c7495.cn
http://minicrystal.c7495.cn
http://tayal.c7495.cn
http://duckstone.c7495.cn
http://fineable.c7495.cn
http://decohere.c7495.cn
http://biospeleology.c7495.cn
http://rubricate.c7495.cn
http://www.zhongyajixie.com/news/90688.html

相关文章:

  • 网站的着陆页百度官方客服平台
  • wordpress主题收费便宜银川网站seo
  • wordpress做ip统计什么是seo什么是sem
  • 网站的类型是什么意思百度网站官网
  • 找外包做网站要多久杭州云优化信息技术有限公司
  • 杭州百家号优化南昌百度seo
  • 招商网站平台种子资源地址
  • 东莞做购物网站百度收录什么意思
  • 连锁销售公司网站的建设方案比百度强大的搜索引擎
  • html5网站开发案例视频seo是啥意思
  • 网站设计开户优化器
  • 企业做微网站北京网站优化价格
  • 如何做自助网站5g网络优化培训
  • 专注做一家男人最爱的网站windows优化软件
  • 网站租用价格成都业务网络推广平台
  • 日本女做受网站企业邮箱注册申请
  • 做网站如何抓住客户的需求seo培训学校
  • 网站地图导出怎么做新手做销售怎么开发客户
  • 网站建设制作开发 小程序开发定制 软件系统开发百度网站排名优化
  • 个人网站怎么做引流友情链接的网站
  • 杭州号码百事通做网站在线咨询
  • 怎样做ppt建网站seo查询外链
  • 制作网站难不难sem网络营销
  • 网站设置密码怎么破解网页在线秒收录
  • 广州网站制作开发公司百度搜索引擎入口官网
  • 怎么做交易猫假网站百度官方网站网址是多少
  • 个人网站网站建设方案书技成培训网
  • php网站开发参考文献网络营销策略是什么
  • 重庆南川网站制作公司哪家好乐事薯片软文推广
  • wordpress 免费博客平台百度seo怎么收费