bash – 确定Mac中终端中的多个系统变量的值
发布时间:2020-12-16 01:30:55 所属栏目:安全 来源:网络整理
导读:我在Mac上在终端中,您将如何计算出以下每个值? 字大小(64位与32位) L1 / L2缓存大小 确定使用了多少内存(如df,但是用于RAM) 谢谢!我知道你可以在Activity Monitor,System Profiler等中找到这些内容,但是我正在提高我对终端和UNIX的了解. System Profiler是
我在Mac上在终端中,您将如何计算出以下每个值?
>字大小(64位与32位) 谢谢!我知道你可以在Activity Monitor,System Profiler等中找到这些内容,但是我正在提高我对终端和UNIX的了解.
System Profiler是围绕/usr/sbin / system_profiler的GUI包装器.
mress:10008 Z$system_profiler -listDataTypes Available Datatypes: SPHardwareDataType SPNetworkDataType SPSoftwareDataType SPParallelATADataType SPAudioDataType SPBluetoothDataType SPCardReaderDataType SPDiagnosticsDataType SPDiscBurningDataType SPEthernetDataType SPFibreChannelDataType SPFireWireDataType SPDisplaysDataType SPHardwareRAIDDataType SPMemoryDataType SPPCIDataType SPParallelSCSIDataType SPPowerDataType SPPrintersDataType SPSASDataType SPSerialATADataType SPUSBDataType SPAirPortDataType SPFirewallDataType SPNetworkLocationDataType SPModemDataType SPNetworkVolumeDataType SPWWANDataType SPApplicationsDataType SPDeveloperToolsDataType SPExtensionsDataType SPFontsDataType SPFrameworksDataType SPLogsDataType SPManagedClientDataType SPPrefPaneDataType SPStartupItemDataType SPSyncServicesDataType SPUniversalAccessDataType mress:10009 Z$system_profiler SPHardwareDataType Hardware: Hardware Overview: Model Name: iMac Model Identifier: iMac10,1 Processor Name: Intel Core 2 Duo Processor Speed: 3.33 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 6 MB Memory: 16 GB Bus Speed: 1.33 GHz Boot ROM Version: IM101.00CC.B00 SMC Version (system): 1.52f9 Serial Number (system): QP0241DXB9S Hardware UUID: 01C6B9E9-B0CB-5249-8AC7-069A3E44A188 您还可以从/usr/sbin / sysctl获取一些有用的信息(尝试sysctl -a). mress:10014 Z$sudo sysctl -a | grep cache Password: hw.cachelinesize = 64 hw.l1icachesize = 32768 hw.l1dcachesize = 32768 hw.l2cachesize = 6291456 kern.flush_cache_on_write: 0 vfs.generic.nfs.client.access_cache_timeout: 60 vfs.generic.nfs.server.reqcache_size: 64 net.inet.ip.rtmaxcache: 128 net.inet6.ip6.rtmaxcache: 128 hw.cacheconfig: 2 1 2 0 0 0 0 0 0 0 hw.cachesize: 17179869184 32768 6291456 0 0 0 0 0 0 0 hw.cachelinesize: 64 hw.l1icachesize: 32768 hw.l1dcachesize: 32768 hw.l2cachesize: 6291456 machdep.cpu.cache.linesize: 64 machdep.cpu.cache.L2_associativity: 8 machdep.cpu.cache.size: 6144 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 如何在VIM中映射CAPS LOCK键?
- scala – 将任务添加到sbt 13.x build.sbt
- angular学习(十一)—— Form
- forms – 在Angular中使用ControlValueAccessor继承验证
- angularjs – 我可以直接在templateUrl上使用Angular服务中
- WebService CXF and Spring2.5
- angularjs跨路径维护范围变量
- [Angularjs]ng-class,ng-class-even,ng-class-odd
- angularjs – 在提交后向表单字段添加自定义消息
- karma phantomjs没有在docker容器中捕获