[DOCS-5189] db.hostInfo doesn't contain all fields Created: 09/Apr/15  Updated: 30/Oct/23  Resolved: 07/Jul/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Minor - P4
Reporter: William Cross Assignee: Andrew Aldridge
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 8 years, 32 weeks, 1 day ago

 Description   

I see that db.hostInfo() in the docs doesn't include the following:

  • physicalCores
  • cpuString

Here's my hostInfo from my mac:

mixedSet:SECONDARY> db.hostInfo()
{
	"system" : {
		"currentTime" : ISODate("2015-04-09T13:28:01.888Z"),
		"hostname" : "cross-mb-air.local:27003",
		"cpuAddrSize" : 64,
		"memSizeMB" : 8192,
		"numCores" : 4,
		"cpuArch" : "x86_64\u0000",
		"numaEnabled" : false
	},
	"os" : {
		"type" : "Darwin",
		"name" : "Mac OS X",
		"version" : "14.1.0\u0000"
	},
	"extra" : {
		"versionString" : "Darwin Kernel Version 14.1.0: Thu Feb 26 19:26:47 PST 2015; root:xnu-2782.10.73~1/RELEASE_X86_64\u0000",
		"alwaysFullSync" : 0,
		"nfsAsync" : 0,
		"model" : "MacBookAir6,2\u0000",
		"physicalCores" : 2,
		"cpuFrequencyMHz" : 1700,
		"cpuString" : "Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz\u0000",
		"cpuFeatures" : "FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C\u0000 SYSCALL XD 1GBPAGE EM64T LAHF LZCNT RDTSCP TSCI\u0000",
		"pageSize" : 4096,
		"scheduler" : "multiq\u0000"
	},
	"ok" : 1
}



 Comments   
Comment by Githook User [ 08/Jul/15 ]

Author:

{u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}

Message: DOCS-5189: Add missing hostInfo fields on OSX.

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/ac3e04525294f570f6326b4d42ebdc790ea128cc

Comment by Andrew Aldridge [ 07/Jul/15 ]

Yup, I'm aware. I feel bad for Windows; it only has pageSize

Comment by Sam Kleinman (Inactive) [ 07/Jul/15 ]

The fields noted in the description only appear on OS X systems.

Comment by William Cross [ 07/Jul/15 ]

Thank you!!

Comment by Andrew Aldridge [ 07/Jul/15 ]

Thanks, Will!

Generated at Thu Feb 08 07:49:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.