Date: Sun, 04 May 2014 12:54:47 +0200 From: Stefan Esser <se@freebsd.org> To: freebsd-hackers@freebsd.org Subject: Re: Leaving the Desktop Market Message-ID: <53661C77.5030806@freebsd.org> In-Reply-To: <20140504112807.1136d108@x23> References: <CAF6rxgkeBozvfV-L0%2BrFZ6fWRn0=Gi3BNq1kPL=-HTq0TD6MkQ@mail.gmail.com> <A70900DF-4BAA-427F-8731-01211FFD1887@mail.turbofuzz.com> <3F7430D7-3C0F-43E1-8EBD-8AA4F701497C@FreeBSD.org> <20140503155745.GA2457@La-Habana> <CAJ-VmokHQvb2S-1c08J3RECUMosQ%2Bcd1gdB91LAb5famfKqP5w@mail.gmail.com> <20140503192305.GA1847@La-Habana> <CAJ-Vmon1ZYX18SN1f=z9N=hSgpZrAxXMxiJBUDWk6LYvMRiHmw@mail.gmail.com> <CAN6yY1uo08PDsYJ2KQNjw4hYuNsNJUvRu1b0cG%2B387F6Owkukg@mail.gmail.com> <536592D1.7080403@freebsd.org> <CAN6yY1tdsitXmGeu87OBw6RZ_s0qDvuoYXbTJVjnr74k6oM4Ag@mail.gmail.com> <CAJ-Vmo=zXyuyARapz4UCaTwMtWtW_8ys0pgssHOOUhnA-5Bt4g@mail.gmail.com> <CAN6yY1ukYxuf=jwBVbepCg84k54HdquyCiwpRx%2BB=SQ1hb0efg@mail.gmail.com> <CAJ-Vmokq-e7qMNZq_XVh3XBidAg7o6y4MOscvJYXSZB=dN9EjA@mail.gmail.com> <20140504112807.1136d108@x23>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 04.05.2014 11:28, schrieb Marko Zec: > On Sun, 4 May 2014 01:13:48 -0700 > Adrian Chadd <adrian@freebsd.org> wrote: > >> [snip] >> >> ok, how about this to start with: >> >> http://people.freebsd.org/~adrian/power/20140504-powerd-1.diff >> >> This defaults powerd to set minfreq to 50% of the hardware available >> maxfreq, unless minfreq is explicitly given on the command line. > > As already noted earlier in this thread, if you disable > > hint.p4tcc.0.disabled=1 > hint.acpi_throttle.0.disabled=1 > > then the kernel does not even expose expose those silly minimum > "frequencies", and your problem goes away without patching powerd. > > A more reasonable and simpler patch would be to disable the two > offending throttling drivers by default, I really cannot see a single > reason why do we need them at all, less why they are enabled. > > Marko Very true and this topic has come up so many times during for at least a decade (if not much longer). Throttling had its use at a time, but this time is long gone. Throttling is enabled unless probing of the "p4tcc" and "acpi_throttle" pseudo-devices is disabled by device hints. As a first step, these hints could be set in /boot/defaults/loader.conf. They could still be overridden in /boot/loader.conf, if they really are required (anybody still got P4 systems running -CURRENT?). A better fix would be to disable throttling depending on the CPU model identified (or on the presence of any other power management solution). Since the CPUs are probed before any device, adding a "disable" hint for both throttling methods would be kind of a hack, but should work. If there is an agreement, that we should move into that direction, I'll try to create a patch for review. Regards, STefan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53661C77.5030806>