Re: Some FreeBSD performance Issues

2007-11-12 Thread Adrian Chadd
On 12/11/2007, Randall Hyde <[EMAIL PROTECTED]> wrote: > At this point I'm not sure why FreeBSD's API call is so slow (btw, it's not > the system call that's responsible, if I make several additional API calls > on each read, e.g., doing lseeks, this has only a marginal impact on > performance). B

Re: Some FreeBSD performance Issues

2007-11-12 Thread Peter Jeremy
On Sun, Nov 11, 2007 at 09:52:21AM -0800, Randall Hyde wrote: >why C's code was so much faster, I dug into the source code and discovered >that open/read/write/etc. use *buffered* I/O (which explains why "dd" >performs so well). open/read/write/etc. do _not_ do any buffering in userland. This is

Re: Some FreeBSD performance Issues

2007-11-12 Thread Benjamin Lutz
Randall Hyde wrote: > Hi All, > > I recently ported my HLA (High Level Assembler) compiler to FreeBSD and, > along with it, the HLA Standard Library. I have a performance-related > question concerning file I/O. > > It appears that character-at-a-time file I/O is *exceptionally* slow. Yes, I > rea

1000+ day uptime 5.3-RELEASE box

2007-11-12 Thread Kevin Day
We installed a 5.3-RELEASE box back in 2004, and it's been running pretty hard ever since with no crashes, reboots or anything. We're about to finally take it down to upgrade the OS soon - are there any stats anyone wants to see before we do? I know in the past there have been some "I won

Re: 1000+ day uptime 5.3-RELEASE box

2007-11-12 Thread Maxim Konovalov
On Mon, 12 Nov 2007, 04:08-0600, Kevin Day wrote: > > We installed a 5.3-RELEASE box back in 2004, and it's been running > pretty hard ever since with no crashes, reboots or anything. We're > about to finally take it down to upgrade the OS soon - are there any > stats anyone wants to see before we

Re: Some FreeBSD performance Issues

2007-11-12 Thread Randall Hyde
> > > Hello Randy, > > First, let me out myself as a fan of yours. It was your book that got me > started on ASM and taught me a lot about computers and logic, plus it > provided some entertainment and mental sustenance in pretty boring > times, so thanks! > > Now, as for your problem: I think I h

How to get filename of an open file descriptor

2007-11-12 Thread Yuri
I am looking for functionality similar to Linux's /proc//fd/. I need to know what is the file name of an open file descriptor. /proc//fd is missing on FreeBSD. There's something called 'fdescfs'. In /dev/fd/ it shows the list of file descriptors. But they don't seem to be symbolic links to open f

Re: How to get filename of an open file descriptor

2007-11-12 Thread Yuri
mbolic links to open files. And > > also it only shows FDs of the current process. > > > > So why there's no /proc//fd in FreeBSD? And how do I work around this? > > > Or should I just invest time and write a kernel patch implementing > > /proc//fd/? > > You

Re: How to get filename of an open file descriptor

2007-11-12 Thread Robert Watson
e these patches a try: http://www.watson.org/~robert/freebsd/20071112-procstat.tgz They reflect a work-in-progress procstat(1) tool, which inspects process state in various ways. They are developed against 8-CURRENT, but likely still apply fairly easily to 7-STABLE. They suffer various deficie

Re: How to get filename of an open file descriptor

2007-11-12 Thread Yuri
to show the the same information instead of the specialized utility. Thanks, Yuri Quoting Robert Watson <[EMAIL PROTECTED]>: > You can give these patches a try: > >http://www.watson.org/~robert/freebsd/20071112-procstat.tgz > > They reflect a work-in-progress proc

Re: How to get filename of an open file descriptor

2007-11-12 Thread Robert Watson
//fd in FreeBSD? And how do I work around this? Or should I just invest time and write a kernel patch implementing /proc//fd/? You can give these patches a try: http://www.watson.org/~robert/freebsd/20071112-procstat.tgz They reflect a work-in-progress procstat(1) tool, which inspects

Re: How to get filename of an open file descriptor

2007-11-12 Thread Robert Watson
On Mon, 12 Nov 2007, Yuri wrote: I looked at the patch. It retrieves file description information through 'sysctl' calls with proprietary keys. Isn't it better architecturally to expose the same information through procfs interface? At least from the filesystem level and up standard tools l

Re: How to get filename of an open file descriptor

2007-11-12 Thread Dmitry Morozovsky
On Mon, 12 Nov 2007, Yuri wrote: Y> I looked at the patch. It retrieves file description information through Y> 'sysctl' calls with proprietary keys. Y> Y> Isn't it better architecturally to expose the same information through procfs Y> interface? At least from the filesystem level and up standar

Re: 1000+ day uptime 5.3-RELEASE box

2007-11-12 Thread Ulrich Spoerlein
On Mon, 12.11.2007 at 04:08:45 -0600, Kevin Day wrote: > ts1# vmstat -m > > Type InUse MemUse HighUse Requests Size(s) >allocindir12 1K 2623K532365228 64 >newblk 1 1K 1K602736113 64,256 > NFSV3 srvdesc 0 0K 2K107739750 16,256 >

Re: 1000+ day uptime 5.3-RELEASE box

2007-11-12 Thread Bjoern A. Zeeb
On Mon, 12 Nov 2007, Maxim Konovalov wrote: On Mon, 12 Nov 2007, 04:08-0600, Kevin Day wrote: We installed a 5.3-RELEASE box back in 2004, and it's been running pretty hard ever since with no crashes, reboots or anything. We're about to finally take it down to upgrade the OS soon - are there