How to do benchmark test for my new kernel.
hi all, I build a new kernel and install it, but don't known how to test the my new kernel's performance. I have read the Regressin and Performance Testing Guide in developer's handbook. But where is the test program is, and how do i invoke them? Gratitude to any words! Thank u! ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: syslog(3) issues
On 9/3/2012 4:05 AM, Attilio Rao wrote: Hi, I was trying to use syslog(3) in a port application that uses threading , having all of them at the LOG_CRIT level. What I see is that when the logging gets massive (1000 entries) I cannot find some items within the /var/log/messages (I know because I started stamping also some sort of message ID in order to see what is going on). The missing items are in the order of 25% of what really be there. Is not it caused by syslogd compression? As you may know syslogd compresses consecutive identical messages into one message like "last message repeated N times". The -cc option disables compression. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: syslog(3) issues
On Mon, 3 Sep 2012, Attilio Rao wrote: I was trying to use syslog(3) in a port application that uses threading , having all of them at the LOG_CRIT level. What I see is that when the logging gets massive (1000 entries) I cannot find some items within the /var/log/messages (I know because I started stamping also some sort of message ID in order to see what is going on). The missing items are in the order of 25% of what really be there. Someone has a good idea on where I can start verifying for my syslogd system? I have really 0 experience with syslogd and maybe I could be missing something obvious. syslog(3)/syslogd(8) use datagram sockets for both local and networked logging, and it is possible for those datagram sockets to fill and drop messages. I'm not sure if we have per-socket counters that can easily be queried by syslogd, but if we do, it might be beneficial to have syslogd wake up once a second and check to see if the counters have changed -- if they have, inject a log message indicating how many messages were dropped in the last $epsilon. If we don't have counters along those lines, it might make sense to add them. We might also find that it is appropriate to tune up the limits if they no longer seem sensible in the current world order -- they may have late 1980s/early 1990s values (or they may not). Robert ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: How to do benchmark test for my new kernel.
Den 03/09/2012 kl. 09.25 skrev Junior White : > hi all, > I build a new kernel and install it, but don't known how to test the my > new kernel's performance. > I have read the Regressin and Performance Testing Guide in developer's > handbook. But where is > the test program is, and how do i invoke them? The handbook is deliberately vague on this point because choosing a benchmark program requires you to think about what you want to optimize, i.e. which type of workload your system will be handling. If you mostly want to play around and try out different optimizations, I would suggest to install some of the benchmark programs in /usr/ports/benchmarks/. Try /usr/ports/benchmarks/unixbench/ for a set of micro-benchmarks. Kind regards, Erik___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: freebsd.org git repositories and svn ids
On Sun, Sep 2, 2012 at 5:45 PM, Eitan Adler wrote: > Why isn't git.freebsd.org a straight "git svn clone" ? AFAIK that isn't > broken. Well, let's put it this way: I started a git svn clone of the src repository on Aug 28. It's still going. And I'm only creating a very small subset of the branches in the repo. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: freebsd.org git repositories and svn ids
On 3 September 2012 10:19, Ryan Stone wrote: > On Sun, Sep 2, 2012 at 5:45 PM, Eitan Adler wrote: >> Why isn't git.freebsd.org a straight "git svn clone" ? AFAIK that isn't >> broken. > > Well, let's put it this way: I started a git svn clone of the src > repository on Aug 28. It's still going. And I'm only creating a very > small subset of the branches in the repo. I've done the same and it only took me a few hours although the ports repo took a few days. -- Eitan Adler ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: freebsd.org git repositories and svn ids
On Mon, Sep 3, 2012 at 10:29 AM, Eitan Adler wrote: > I've done the same and it only took me a few hours although the ports > repo took a few days. Hm. Maybe you were working from a local, svnsync'ed repo? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: freebsd.org git repositories and svn ids
On 3 September 2012 11:12, Ryan Stone wrote: > On Mon, Sep 3, 2012 at 10:29 AM, Eitan Adler wrote: >> I've done the same and it only took me a few hours although the ports >> repo took a few days. > > Hm. Maybe you were working from a local, svnsync'ed repo? nope: svn+ssh://svn.freebsd.org - it is the same repository I use to commit from. -- Eitan Adler ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: freebsd.org git repositories and svn ids
On Mon, Sep 3, 2012 at 7:29 AM, Eitan Adler wrote: > On 3 September 2012 10:19, Ryan Stone wrote: >> On Sun, Sep 2, 2012 at 5:45 PM, Eitan Adler wrote: >>> Why isn't git.freebsd.org a straight "git svn clone" ? AFAIK that isn't >>> broken. >> >> Well, let's put it this way: I started a git svn clone of the src >> repository on Aug 28. It's still going. And I'm only creating a very >> small subset of the branches in the repo. > > I've done the same and it only took me a few hours although the ports > repo took a few days. Did you try to preserve the full history in the git version? I'm not familiar with git clone, but when I've made a git copy of an svn repo for uses at work (both of freebsd.org any $WORK's repo) it took two to three days just to fetch the portion of the revisions that were for head/current. A few hours sounds too short. The three-four days since Aug 28 sounds normal to me. Cheers, matthew ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: freebsd.org git repositories and svn ids
On 3 September 2012 12:01, wrote: > On Mon, Sep 3, 2012 at 7:29 AM, Eitan Adler wrote: >> On 3 September 2012 10:19, Ryan Stone wrote: >>> On Sun, Sep 2, 2012 at 5:45 PM, Eitan Adler wrote: Why isn't git.freebsd.org a straight "git svn clone" ? AFAIK that isn't broken. >>> >>> Well, let's put it this way: I started a git svn clone of the src >>> repository on Aug 28. It's still going. And I'm only creating a very >>> small subset of the branches in the repo. >> >> I've done the same and it only took me a few hours although the ports >> repo took a few days. > > Did you try to preserve the full history in the git version? I'm not > familiar with git clone, but when I've made a git copy of an svn repo > for uses at work (both of freebsd.org any $WORK's repo) it took two to > three days just to fetch the portion of the revisions that were for > head/current. > > A few hours sounds too short. The three-four days since Aug 28 sounds > normal to me. I have the complete history of HEAD from revision r1 to r240065. I don't have other branches. -- Eitan Adler ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: freebsd.org git repositories and svn ids
On 3 September 2012 12:09, Eitan Adler wrote: > On 3 September 2012 12:01, wrote: >> On Mon, Sep 3, 2012 at 7:29 AM, Eitan Adler wrote: >>> On 3 September 2012 10:19, Ryan Stone wrote: On Sun, Sep 2, 2012 at 5:45 PM, Eitan Adler wrote: > Why isn't git.freebsd.org a straight "git svn clone" ? AFAIK that isn't > broken. Well, let's put it this way: I started a git svn clone of the src repository on Aug 28. It's still going. And I'm only creating a very small subset of the branches in the repo. >>> >>> I've done the same and it only took me a few hours although the ports >>> repo took a few days. >> >> Did you try to preserve the full history in the git version? I'm not >> familiar with git clone, but when I've made a git copy of an svn repo >> for uses at work (both of freebsd.org any $WORK's repo) it took two to >> three days just to fetch the portion of the revisions that were for >> head/current. >> >> A few hours sounds too short. The three-four days since Aug 28 sounds >> normal to me. > > I have the complete history of HEAD from revision r1 to r240065. I > don't have other branches. another thought: even if it does take this long, it should be a one time conversion cost. cloning the repo should not take that long, and a "git svn rebase" on a cron job shouldn't take that long either. -- Eitan Adler ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
What happened to my /proc/curproc/file?
Am I the only one who's seeing this weirdness with procfs on 9.0-RELEASE-p3. Unless I'm overlooking something stupid, a process that rmdir(2)s a subdirectory of its current directory ends up with a broken /proc/curproc/file symlink: [mrsam@freebsd ~/stasher/stasher]$ cat t.c #include #include #include void dump(int n) { char buf[2048]; printf("Line %d, rc=%s\n", n, (readlink("/proc/curproc/file", buf, 2048) < 0 ? "err":"ok")); } int main(int argc, char **argv) { dump(__LINE__); mkdir("conftestdir.tst", 0777); rmdir("conftestdir.tst"); dump(__LINE__); } [mrsam@freebsd ~/stasher/stasher]$ cc -o t t.c [mrsam@freebsd ~/stasher/stasher]$ ./t Line 15, rc=ok Line 18, rc=err ??? pgp8on2RgFH47.pgp Description: PGP signature
Re: syslog(3) issues
Attilio, good day. Mon, Sep 03, 2012 at 12:35:24AM +0100, Attilio Rao wrote: > I was trying to use syslog(3) in a port application that uses > threading , having all of them at the LOG_CRIT level. What I see is > that when the logging gets massive (1000 entries) I cannot find some > items within the /var/log/messages (I know because I started stamping > also some sort of message ID in order to see what is going on). The > missing items are in the order of 25% of what really be there. > > Someone has a good idea on where I can start verifying for my syslogd > system? This is almost obvious, but had you tried running syslogd with flag '-d' that gives verbose information about incoming stuff and whether it will be logged to some file(s). -- Eygene Ryabinkin,,,^..^,,, [ Life's unfair - but root password helps! | codelabs.ru ] [ 82FE 06BC D497 C0DE 49EC 4FF0 16AF 9EAE 8152 ECFB | freebsd.org ] pgpRJcsuJ1Dg3.pgp Description: PGP signature