Bug 45294

Summary: LINT notes are murky re PQ_CACHESIZE setting
Product: Documentation Reporter: fn <fn>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description fn 2002-11-14 18:00:04 UTC
LINT (or NOTES, in -current) mentions the PQ_CACHESIZE setting but doesn't
tell me what the argument refers to.  For example, the default is

options         PQ_CACHESIZE=512        # color for 512k/16k cache

What do 512k/16k refer to?  I have an AMD Athlon chip with 

Data TLB: 24 entries, fully associative
Instruction TLB: 16 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative

What do I use for PQ_CACHESIZE?  Do I even use PQ_CACHESIZE?  Is it deprecated?
Help?

Fix: 

You got me there.
How-To-Repeat: 
Read /sys/i386/conf/LINT or /sys/conf/NOTES
Comment 1 Hiten Pandya freebsd_committer freebsd_triage 2003-05-28 18:11:48 UTC
Does the commit log (provided below) help?

	revision 1.792
	date: 2000/07/04 08:55:18;  author: jhb;  state: Exp;  lines: +4 -2
	Replace the PQ_*CACHE options with a single PQ_CACHESIZE option that
	you set equal to the number of kilobytes in your cache.  The old
	options are still supported for backwards compatibility.

Cheers.

	-- Hiten (hmp@FreeBSD.ORG)
Comment 2 Hiten Pandya freebsd_committer freebsd_triage 2003-06-02 03:29:51 UTC
State Changed
From-To: open->feedback

Waiting for Originator's followup.
Comment 3 fn 2003-06-02 18:57:28 UTC
Hiten Pandya <hmp@FreeBSD.org> writes:

> Does the commit log (provided below) help?

Not completely.  Does that mean the number refers to the size of the
L2 cache?  If so, I think LINT should mention that ("The number is the
size of your L2 cache in KB.") -- and that would satisfy me.


Thanks,

Faried.
Comment 4 bmilekic 2003-06-04 11:04:10 UTC
Yes, that's it.

--=20
Bosko Milekic
bmilekic@unixdaemons.com
bmilekic@FreeBSD.org
Comment 5 Hiten Pandya freebsd_committer freebsd_triage 2003-06-09 18:34:06 UTC
State Changed
From-To: feedback->closed

Thanks Faried, Bosko.  I have committed a de-obfuscated description to NOTES.