Date: Thu, 18 Jul 2019 06:15:25 -0700 From: John-Mark Gurney <jmg@funkthat.com> To: Sergey Manucharian <sm@ara-ler.com> Cc: Oleksandr Tymoshenko <gonzo@bluezbox.com>, freebsd-arm@freebsd.org Subject: Re: Writing to /dev/fb0 Message-ID: <20190718131525.GJ2342@funkthat.com> In-Reply-To: <20190624213339.GM2903@eldorado> References: <CAFgkNAkVHccLg15aq9RY5CaT1qV=Bku2KpqOZiLjaNhJJF%2B8=A@mail.gmail.com> <20190621170845.GD2903@eldorado> <20190621171343.GE2903@eldorado> <CAFgkNAmw3cyhacK2RT2bHn=pNjRTE39o=bAR7aeuJPRb6W1dyQ@mail.gmail.com> <20190621190502.GA35692@bluezbox.com> <20190621193419.GG2903@eldorado> <20190624213339.GM2903@eldorado>
next in thread | previous in thread | raw e-mail | index | archive | help
Sergey Manucharian wrote this message on Mon, Jun 24, 2019 at 15:33 -0600: > Excerpts from Sergey Manucharian's message from Fri 21-Jun-19 13:34: > > Excerpts from Oleksandr Tymoshenko's message from Fri 21-Jun-19 12:05: > > > You probably can convert this source file from my tslib branch to > > > standalone app: > > > > > > https://github.com/gonzoua/tslib/blob/freebsd/tests/fbutils-bsd.c > > > > > I added "main" and it draws a red rectangle! > > > > int main (int argc, char** argv) > > { > > > > open_framebuffer(); > > setcolor (4, 0xff0000); > > rect(100, 200, 200, 300, 4); > > close_framebuffer(); > > } > > As I already mentioned, these messages > > WARNING: Device driver fb has set "memattr" inconsistently (drv 0 pmap 3). > > flood console. So, the actual performance is very poor because of that, > thus the framebuffer is practically unusable. > > The message comes from: > > sys/vm/device_pager.c > > I tried to understand the purpose of the corresponding commit: > > https://lists.freebsd.org/pipermail/svn-src-head/2016-May/085608.html > https://reviews.freebsd.org/D6149 > > However, I don't understand how to eliminate that, how to deal with the > "memattr". Disabling the message itself in "sys/vm/device_pager.c" > significantly improves the performance. > > Would anybody advise please? Looks like those messages need to be rate limited... There's counter_ratecheck and ratecheck functions that can be used to easily fix this.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190718131525.GJ2342>