TBB support for FreeBSD

2007-09-29 Thread Arun Sharma
FreeBSD support - tested on 7.0-CURRENT/amd64. Should apply cleanly to tbb20_20070815oss_src.tar.gz. Signed-off-by: Arun Sharma [EMAIL PROTECTED] diff -r 627751b671bb -r ac2c116b7cee build/common.inc --- a/build/common.inc Sat Sep 29 16:18:03 2007 -0700 +++ b/build/common.inc Sat Sep 29 16:51

Re: TBB support for FreeBSD

2007-09-30 Thread Arun Sharma
On 9/29/07, Mike Meyer [EMAIL PROTECTED] wrote: Any chance of getting this packaged as a FreeBSD port, which can apply the patch until it gets rolled into the distributed tarball? I don't see a TBB port. I just send-pr'ed it. You can also get it from:

Excessive assembly code ?

1999-08-05 Thread Arun Sharma
Taking a quick look at /usr/src/sys/i386: find . -name *.s | xargs wc -l 44 ./svr4/svr4_locore.s 216 ./apm/apm_setup.s 24 ./linux/linux_locore.s 461 ./isa/apic_ipl.s 1057 ./isa/apic_vector.s 168 ./isa/icu_ipl.s 224 ./isa/icu_vector.s 387 ./isa/ipl.s

Usenix 93 paper on hardware profiling of 386BSD

1999-08-06 Thread Arun Sharma
Does anyone have a copy of Andrew McRae's Usenix 93 paper ? The URL: ftp://ftp.cisco.com/amcrae/hardprof.PS doesn't seem to be valid any more. Thanks! -Arun To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: mmap bug

1999-08-12 Thread Arun Sharma
On Thu, Aug 12, 1999 at 12:02:19PM +0100, Tony Finch wrote: Matthew Dillon [EMAIL PROTECTED] wrote: One solution would be to map clean R+W pages RO and force a write fault to occur, allowing the system to recognize that there are too many dirty pages in vm_fault before it is too

Re: mmap bug

1999-08-12 Thread Arun Sharma
On Fri, Aug 13, 1999 at 03:04:43PM +0930, Mark Newton wrote: Arun Sharma wrote: The second alternative - to mark system daemons as special sounds much more attractive. Ok, now define the difference between "system daemons" and any other daemon (or, for that matter, any oth

Re: cache-friendly scheduling for SMP

1999-09-16 Thread Arun Sharma
On Thu, Sep 16, 1999 at 12:25:52PM +, greg wrote: Can anybody point me to a paper, mailing list discussion, etc. that discusses scheduling processes to not thrash the cpu caches? Or if there's anything in place, how I can take advantage of it, etc. I got stumped on the idea a while

vm_map.h and C++ warnings

1999-10-12 Thread Arun Sharma
The following patch fixes it. -Arun # diff -u vm_map.h- vm_map.h --- vm_map.h- Tue Oct 12 22:52:10 1999 +++ vm_map.hTue Oct 12 22:54:58 1999 @@ -229,7 +229,7 @@ #if defined(MAP_LOCK_DIAGNOSTIC) printf("locking map LK_EXCLUPGRADE: 0x%x\n", map); #endif - error =

kstat - an API for gathering kernel stats

1999-11-03 Thread Arun Sharma
I wrote kstat as a way to improve on the current BSD method of getting kernel statistics, which involves looking up a particular kernel symbol name and then getting the value from the symbol offset. This makes any performance monitoring tool or an application that gets kernel stats non-portable

Re: kstat - an API for gathering kernel stats

1999-01-02 Thread Arun Sharma
On Thu, Nov 04, 1999 at 02:53:51AM -0500, Matthew N. Dodd wrote: On Wed, 3 Nov 1999, Arun Sharma wrote: A user program makes a system call with this string "cpu.system" to get the current value of user/system/nice time etc. How is this different from doing: # sysctl -a |

Re: kstat - an API for gathering kernel stats

1999-01-02 Thread Arun Sharma
On Thu, Nov 04, 1999 at 12:52:50PM -0500, Matthew N. Dodd wrote: On Thu, 4 Nov 1999, Arun Sharma wrote: I just looked at the sysctl implementation and there are some differences. Moreover, since it was not being used in tools like vmstat and xosview, I thought there must be a reason

Re: kstat - an API for gathering kernel stats

1999-01-02 Thread Arun Sharma
On Thu, Nov 04, 1999 at 06:30:01PM -0800, Mike Smith wrote: Sysctl is faster than kstat once you have performed the name-oid lookup. There is basically nothing that kstat can do that sysctl can't do better and faster, apart from lookup-by-name. Can a loadable module, say a network driver

Per CPU timekeeping for SMP

1999-12-05 Thread Arun Sharma
Here's a reimplementation of my earlier per cpu time keeping patch on SMP. The attached patch is against a 11/20/99 -current that I cvsup'ed. 1. On UP, sys_time is a global and contains the system wide stats cpu_time is a global and is essentially the same as sys_time. 2. On

Re: Fwd: Re: kstat - an API for gathering kernel stats

1999-12-08 Thread Arun Sharma
On Mon, Nov 29, 1999 at 10:09:35AM +0100, Andrzej Bialecki wrote: I was thinking about implementing SMP cpu stats using sysctl today and I have a question - can I create sysctl nodes dynamically ? i.e. for (cpu = 0; cpu get_num_cpus(); cpu++) { /* create sysctl

Re: Fwd: Re: kstat - an API for gathering kernel stats

1999-12-08 Thread Arun Sharma
On Wed, Dec 08, 1999 at 05:44:31PM +0100, Andrzej Bialecki wrote: On Wed, 8 Dec 1999, Arun Sharma wrote: Erhm.. No. Look closer at the SPY module. I create the whole branch from the root level. In the standard system there is no such thing as "kld" node, neither there is a &qu

Re: Per CPU timekeeping for SMP

1999-12-17 Thread Arun Sharma
Arun Sharma wrote: Here's a reimplementation of my earlier per cpu time keeping patch on SMP. The attached patch is against a 11/20/99 -current that I cvsup'ed. Did anyone get a chance to review this ? Is everyone busy or sending patches to -hackers is frowned upon ? Or is this something

Re: Accessing user data from kernel

2000-01-19 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: When the kernel wants to access any user data, it either copies them into the kernel or maps them into kernel address space. Can anyone tell me the reasons why this is done? When a process enters the kernel mode, the page tables are not changed.

Re: Accessing user data from kernel

2000-01-20 Thread Arun Sharma
On Thu, Jan 20, 2000 at 10:04:16AM -0500, Zhihui Zhang wrote: Point 2 seems to be saying that we would rather sacrifice some performance to gain a cleaner interface (people are talking about eliminating kernel copying for a long time). Consider the physical I/O on a raw device, where we map

Re: Finding percent idle

2000-02-26 Thread Arun Sharma
On Fri, 25 Feb 2000 14:25:46 -0500, James Housley [EMAIL PROTECTED] wrote: I am trying to find out the current % idle of the machine from within a program. I have looked at the valuse provided by sysctl and found loadavg but not system idle. I have also looked through the source for top and

Re: 64bit OS?

2000-02-26 Thread Arun Sharma
Arun Sharma wrote: Matt Dillon wrote: What I would truely love to do would be to get away with not using a GPT at all and instead doing a vm_map_lookup_entry()/vm_page_lookup() (essentially taking a vm_fault), then optimize the vm_map_entry structural hierarchy to look

Re: 64bit OS?

2000-02-18 Thread Arun Sharma
[ My apologies if this is a repeat - my earlier mail didn't seem to make it ] On Fri, 18 Feb 2000 12:03:37 +1100, Patryk Zadarnowski [EMAIL PROTECTED] wrote: On the other hand, IA-64 is a very exotic architecture from the OS's point of view, and anyone planning to port *BSD to it should

Re: 64bit OS?

2000-02-18 Thread Arun Sharma
On Fri, Feb 18, 2000 at 04:06:55PM -0800, Matthew Dillon wrote: If I understand the hardware hash table method correctly, then I think the absolute best choice for FreeBSD is to use that method as it will allow us to get rid of the scaleability problems we have with the

Re: 64bit OS?

2000-02-18 Thread Arun Sharma
On Sat, 19 Feb 2000 12:10:14 +1100, Patryk Zadarnowski [EMAIL PROTECTED] wrote: Kevin Elphinstone did a PhD thesis on TLB structures for 64 bit address spaces and it turns out that hash tables perform quite poorly. I'd suggest GPTs instead, or maybe LPCtrie that Chris Szmajda has been

Re: 64bit OS?

2000-02-19 Thread Arun Sharma
On Sun, Feb 20, 2000 at 12:42:14PM +1100, Patryk Zadarnowski wrote: One more thing about GPTs (I thought I'll leave that till last. ;) Jochen Liedtke holds a German patent on them, although he will probably be fairly easily convinced to give FreeBSD rights to use them. I'll be happy to ask

Re: 64bit OS?

2000-02-19 Thread Arun Sharma
On Sun, Feb 20, 2000 at 01:48:49PM +1100, Patryk Zadarnowski wrote: It looks like the hardware has to implement GPTs and know how to walk them. How can FreeBSD use them without hardware support ? No it doesn't. We've got software GPT implementations for both MIPS64 and Alpha, and they're

Re: 64bit OS?

2000-02-20 Thread Arun Sharma
On Sun, Feb 20, 2000 at 04:28:51PM +1100, Patryk Zadarnowski wrote: On Sun, Feb 20, 2000 at 01:48:49PM +1100, Patryk Zadarnowski wrote: It looks like the hardware has to implement GPTs and know how to walk them. How can FreeBSD use them without hardware support ? No it doesn't.

Re: 64bit OS?

2000-02-20 Thread Arun Sharma
Matt Dillon wrote: Linux also stores persistent information in their machine independant page tables. They aren't throw-away like FreeBSD's are. This will give us a huge advantage when we do the IA64 port. I forgot to mention that Linux/IA-64 switches the processor to physical

Re: Getting CPU usage in FreeBSD

2000-03-12 Thread Arun Sharma
On Linux this is what I do to get this value: Measure the number of scheduled jiffies (hundreths of second), measure elapsed time since last measurement, divide. I ran into the same problem as you - and took the time to implement it. My patches fix the SMP case as well as getting it via

RTLD thread safety

2000-03-25 Thread Arun Sharma
When I try to compile a simple multi threaded program using a wrapper around rfork (from linuxthreads port), I get the following core dump: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:54 Investigation into code reveals that lazy resolution of symbols (using PLTs) was

Re: RTLD thread safety

2000-03-26 Thread Arun Sharma
On Sun, Mar 26, 2000 at 11:04:08AM -0600, Richard Seaman, Jr. wrote: No. See the file libc_thread.c in the linuxthreads port. Note that if you call rfork (RF_MEM...) without any supporting infrastructure (eg. as provided by the linuxthreads port) you are in dangerous territory. You do not

Re: Multithread safe gethostbyname() ?

2000-04-11 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: Is there a MT-safe implementation of gethostbyname() in FreeBSD (3.4/4.0)? On Solaris there is gethostbyname_r(). Calling gethostbyname() with in two threads cause both threads to block. You seem to be talking about two different things: 1. A

Re: Multithread safe gethostbyname() ?

2000-04-12 Thread Arun Sharma
On Wed, Apr 12, 2000 at 12:07:40AM -0700, Ming Zhang wrote: In your case, both the threads are waiting for a DNS server response, so the thread scheduler doesn't have a thread to schedule. If I only create one thread, then the gethostbyname() returns immediately. By using truss -p, it

Fwd: socket.h and _POSIX_SOURCE

2000-04-20 Thread Arun Sharma
Comments ? -Arun From: [EMAIL PROTECTED] (Arun Sharma) Newsgroups: muc.lists.freebsd.questions,mpc.lists.freebsd.questions Subject: socket.h and _POSIX_SOURCE Date: 18 Apr 2000 08:45:31 +0200 What's wrong with this ? -Arun $ cat test.c #include sys/types.h #include sys

Re: Fwd: socket.h and _POSIX_SOURCE

2000-04-25 Thread Arun Sharma
On Mon, Apr 24, 2000 at 04:39:43PM +0200, Jeroen Ruigrok/Asmodai wrote: -On [2420 20:02], Arun Sharma ([EMAIL PROTECTED]) wrote: Comments ? $ cat test.c #include sys/types.h #include sys/socket.h $ cc -D_POSIX_SOURCE -c test.c In file included from test.c:2: /usr/include/sys

Re: Fwd: socket.h and _POSIX_SOURCE

2000-04-29 Thread Arun Sharma
On Sat, Apr 29, 2000 at 12:52:57PM +0200, Jeroen Ruigrok/Asmodai wrote: -On [2425 20:08], Arun Sharma ([EMAIL PROTECTED]) wrote: Would it be fair to say this is a (POSIX non-compliance) bug in the header files ? As Bruce Evans was kind enough to reassure me: sys/socket.h

Re: why JDK 1.1.8 on FreeBFS is so slow ?

2000-05-03 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: As it stands, however, 1.2.2 will not have a JIT either, unless someone finds a way to persuade Sun to help us out on this one. There are a number of JIT's available in the ports collection. Install and use those. I have a description that Fuyuhiko

Lazy binding

2000-05-06 Thread Arun Sharma
Is there a strong reason why FreeBSD rtld uses lazy binding by default ? In a multithreaded environment, this could make things pretty complex. What if a thread holds locks and fails at runtime due to a missing symbol ? Also, is there a significant performance benefit to doing lazy binding ?

Re: FreeBSD Port: xosview-1.7.3

2000-05-11 Thread Arun Sharma
In muc.lists.freebsd.ports, you wrote: Do you happen to know if Xosview can be made to show both CPU's in SMP FreeBsd. I've just swapped from Linux to FreeBsd . See the patches I mailed to freebsd-hackers late last year. You need to patch both the kernel and the userland. I'm a little

Can someone comment on this C++ binary compatibility Q ?

2000-05-14 Thread Arun Sharma
http://bugzilla.mozilla.org/show_bug.cgi?id=33739 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

file creation times ?

2000-05-18 Thread Arun Sharma
Is there any reason why FreeBSD doesn't store file creation times on the disk (apart from historical reasons) ? -Arun To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: file creation times ?

2000-05-18 Thread Arun Sharma
On Thu, May 18, 2000 at 09:04:52PM +0400, Aleksandr A.Babaylov wrote: Arun Sharma writes: Is there any reason why FreeBSD doesn't store file creation times on the disk (apart from historical reasons) ? in adddition to atime, ctime and mtime? struct timespec st_atimespec; /* time of last

Re: mremap help ? or no support for FreeBSD ? so do what ?

2000-05-13 Thread Arun Sharma
On Sat, May 13, 2000 at 12:08:35PM -0700, Matthew Dillon wrote: The linux mremap() is an idiotic system call. Just unmap the file and re-mmap it. If you are just appending to the file, you can skip the munmap. mmap deletes the old mappings. -Arun To Unsubscribe: send mail

Re: FreeBSD Port: xosview-1.7.3

2000-05-13 Thread Arun Sharma
On Thu, May 11, 2000 at 10:52:04PM -0700, Doug Barton wrote: Arun Sharma wrote: See the patches I mailed to freebsd-hackers late last year. You need to patch both the kernel and the userland. I'm a little disappointed at the lack of response. I just assumed that no one is interested

truss(1) with support for fork(2) and friends

2000-05-20 Thread Arun Sharma
I just implemented the "-f" flag in truss, to trace across fork(2), rfork(2) and vfork(2) (the last one is not tested). The other day I observed that there were two truss processes when I was running "truss -f" on a Solaris box. I just thought it was a much simpler way of implementing "-f" than

truss -f, updated patch

2000-05-21 Thread Arun Sharma
Before I go to sleep, I've shortened the diff by about 50%. The new diff is at: http://sharmas.dhs.org/~adsharma/projects/freebsd/truss-diff.gz http://sharmas.dhs.org/~adsharma/projects/freebsd/truss.tar.gz To be applied as: cd truss gzcat -dc truss-diff.gz | patch -p1 The real 100 lines of

Re: file creation times ?

2000-05-24 Thread Arun Sharma
On Thu, May 25, 2000 at 11:03:38AM +1000, Peter Jeremy wrote: On Thu, 18 May 2000 10:35:11 -0700, Arun Sharma [EMAIL PROTECTED] wrote: On Thu, May 18, 2000 at 09:04:52PM +0400, Aleksandr A.Babaylov wrote: Arun Sharma writes: Is there any reason why FreeBSD doesn't store file creation

Re: truss(1) with support for fork(2) and friends

2000-05-26 Thread Arun Sharma
On Fri, May 26, 2000 at 01:51:48PM -0700, John-Mark Gurney wrote: well, has another committer expressed intrest in this work? I was looking at committing your code, but it's both for an out of date version of truss, and run though ident... if you could provide the changes to the -current

Re: truss(1) with support for fork(2) and friends

2000-05-27 Thread Arun Sharma
On Fri, May 26, 2000 at 01:51:48PM -0700, John-Mark Gurney wrote: well, has another committer expressed intrest in this work? I was looking at committing your code, but it's both for an out of date version of truss, and run though ident... if you could provide the changes to the -current

Re: An IA-64 port?

2000-06-03 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: On Sat, 3 Jun 2000, Jordan K. Hubbard wrote: Intel has furnished us with IA-64 hardware and a porting effort is already underway. Contact [EMAIL PROTECTED] if you would like to help out in some way with the process. What can those of us just

Re: An IA-64 port?

2000-06-04 Thread Arun Sharma
In muc.lists.freebsd.hackers, you wrote: On Sun, Jun 04, 2000 at 11:12:22AM -0400, Will Andrews wrote: On Sun, Jun 04, 2000 at 01:18:39AM +0800, Belldandy wrote: Is there any effort(or at least, any thought) on making an IA-64 port of FreeBSD? It seems Intel is trying to push IA-64

Re: An IA-64 port?

2000-06-04 Thread Arun Sharma
On Sun, 04 Jun 2000 15:42:28 -0700, W Gerald Hicks [EMAIL PROTECTED] wrote: Arun Sharma wrote: I don't know if the gas support is public, but you can certainly get the Intel assembler for IA-64, which has been open sourced under the BSD license from developer.intel.com. It may

IA-64 simulator

2000-06-13 Thread Arun Sharma
http://news.excite.com/news/zd/000613/09/chip-makers-cozy Starting Tuesday, Linux developers have been free to download from the Intel Web site or the HP site a copy of the IA-64 SDK. The kit includes an IA-64 simulator developed by HP labs that will allow application developers to begin writing

Re: Setting memory allocators for library functions.

2001-02-26 Thread Arun Sharma
On 26 Feb 2001 18:56:18 +0100, Matt Dillon [EMAIL PROTECTED] wrote: Ha. Right. Go through any piece of significant code and just see how much goes flying out the window because the code wants to simply assume things work. Then try coding conditionals all the way through to fix

Re: Setting memory allocators for library functions.

2001-02-28 Thread Arun Sharma
On Tue, Feb 27, 2001 at 10:39:13PM -0800, Julian Elischer wrote: no, something specifically designed around kernel type of actions. declarations of "physical pointer", "kvm pointer" "User Pointer" for example, and being able to declare a structure (not 'struct') and say "this list is 'per

http://www.freebsd.org/send-pr.html

2001-05-06 Thread Arun Sharma
Doesn't allow me to attach a diff. The attached diff adds that capability to the HTML, but more changes will be needed to the CGI script that handles the form. If someone can point me to the CGI source, I can change that too. -Arun --- send-pr.html.orig Sat May 5 23:11:00 2001 +++

FreeBSD ld.so performance ?

2001-05-09 Thread Arun Sharma
http://www.suse.de/~bastian/Export/linking.txt Has anyone done a comparative study ? -Arun To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

MxN threads on Linux

2001-05-16 Thread Arun Sharma
Ran into this on freshmeat today: http://oss.software.ibm.com/developerworks/opensource/pthreads/ Why isn't the FreeBSD equivalent happening on a public cvs branch ? I'm not demanding that it should happen that way, just curious about the reasons :) -Arun To Unsubscribe: send mail to

RE: MxN threads on Linux

2001-05-17 Thread Arun Sharma
In the last episode (May 16), Arun Sharma said: Ran into this on freshmeat today: http://oss.software.ibm.com/developerworks/opensource/pthreads/ For those interested, it took me about an hour to write up pth_native_freebsd.c (http://sharmas.dhs.org/~adsharma/pth_native_freebsd.c

libc threadsafe ?

2001-05-20 Thread Arun Sharma
I see some changes to -current as of Jan 2001, that attempt to make libc threadsafe without -pthread and _THREAD_SAFE. http://groups.google.com/groups?q=Daniel+Eischenhl=enlr=safe=offscoring=das_drrb=bas_mind=1as_minm=1as_miny=2001as_maxd=20;

_SC_NPROCESSORS_CONF

2001-05-20 Thread Arun Sharma
Single UNIX spec doesn't include the above sysconf(3) argument, but many UNIX variants do. What's the BSD way of doing this ? -Arun To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: [pthreads-devel] Bug in pth_native.c ? + FreeBSD port

2001-05-20 Thread Arun Sharma
On Sun, May 20, 2001 at 08:05:19AM -0400, Bill Abt wrote: Yeah, your right about slot. It should be allocated off the heap... Hmm, that would probably explain a few inconsistencies we've seen as well. Thanks As far as incorporating your changes into the release, sure!!! Another

Re: _SC_NPROCESSORS_CONF

2001-05-20 Thread Arun Sharma
On Sun, May 20, 2001 at 04:57:17PM -0400, Andrew Gallatin wrote: Arun Sharma writes: Single UNIX spec doesn't include the above sysconf(3) argument, but many UNIX variants do. What's the BSD way of doing this ? How about the hw.ncpu sysctl? Any objections to a patch implementing

Re: _SC_NPROCESSORS_CONF

2001-05-21 Thread Arun Sharma
On Sun, May 20, 2001 at 01:56:55PM -0700, Arun Sharma wrote: On Sun, May 20, 2001 at 04:57:17PM -0400, Andrew Gallatin wrote: Arun Sharma writes: Single UNIX spec doesn't include the above sysconf(3) argument, but many UNIX variants do. What's the BSD way of doing this ? How

Re: http://phk.freebsd.dk/Gnats/

2001-05-28 Thread Arun Sharma
On 29 May 2001 00:46:42 +0200, Poul-Henning Kamp [EMAIL PROTECTED] wrote: It seems that my little plot of our abysmal performance when it comes to our PR database actually helped spur some activity, at least the end of the graph points in the right direction now. But we are far from done

libwi and KWireless

2001-06-25 Thread Arun Sharma
KWireless is a KDE kicker applet to display the signal qualtiy of a IEEE 802.11b wireless network. http://www.sharma-home.net/~adsharma/projects/KWireless/ It depends on libwi, a library version of wicontrol(8). http://www.sharma-home.net/~adsharma/projects/libwi/ I know this is not in a

Re: libwi and KWireless

2001-06-25 Thread Arun Sharma
On Mon, Jun 25, 2001 at 03:37:00PM +0100, Doug Rabson wrote: I can't configure it. It doesn't contain a configure script and autoconf doesn't seem to like the (possible misnamed?) configure.in.in file. This is from 4.3-stable with autoconf-2.13_1. Try $ gmake -f Makefile.dist $ cat

NGPT 1.0.0 port to freebsd

2001-06-29 Thread Arun Sharma
http://freshmeat.net/projects/ngpt http://www.sharma-home.net/~adsharma/projects/freebsd/ngpt-1.0.0-freebsd.tar.gz Notes: - The project has gotten more Linux specific since the last port (0.9.4) There are a lot of ugly hacks that need cleanup. - Please commit 27489 to help this port - There

Java (Was Re: NGPT 1.0.0 port to freebsd)

2001-06-29 Thread Arun Sharma
On Fri, Jun 29, 2001 at 09:05:25AM -0600, Nate Williams wrote: With the current license, this won't be installed as part of the base kernel. (GPL and/or LGPL) I understand it'll continue to be a port. Am I hearing that it is unacceptable even as a temporary solution because of the license ?

kern/18524

2000-06-16 Thread Arun Sharma
Not that it adds any more weight to my patch - but the linux folks are essentially doing the same thing: http://reality.sgi.com/dimitris_engr/pda_patch-2.4.0-1 http://www.freebsd.org/cgi/query-pr.cgi?pr=18524 -Arun To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe

Re: How many files can I put in one diretory?

2000-06-22 Thread Arun Sharma
On Wed, 21 Jun 2000 23:42:37 -0700 (PDT), Nicole Harrington. [EMAIL PROTECTED] wrote: Hello I have a user who needs to store a large amount of small html files. Like around 2 million... Assuming FreeBSD 4.0-Stable with Soft Updates, what is a sane number that can be handled per

Re: VM coloring description in NOTES

2000-06-26 Thread Arun Sharma
[This message has also been posted.] On Mon, 26 Jun 2000 10:42:35 +0100, Koster, K.J. [EMAIL PROTECTED] wrote: currently - candidate PQ_HUGECACHE PQ_CACHE1024 PQ_LARGECACHE PQ_CACHE512 PQ_MEDIUMCACHEPQ_CACHE256 PQ_NORMALCACHE

Re: VM coloring description in NOTES

2000-06-26 Thread Arun Sharma
On Mon, Jun 26, 2000 at 12:50:41PM -0400, Kenneth Wayne Culver wrote: Just curious because I have no experience in this area... but what exactly does cache coloring get us... I've never actually gotten a really straight answer on this... Thanks Read Curt Schimmel's book UNIX systems for

libc_r, signals and modifying sigcontext

2001-07-21 Thread Arun Sharma
Greetings. I'm trying to port an application to FreeBSD. I have a signal handler registered using signal(2). It modifies the data pointed to by the third argument - of type sigcontext (specifically sc_eip) - so that the execution would resume at a different point). However, when execution

Re: libc_r, signals and modifying sigcontext

2001-07-21 Thread Arun Sharma
On Sat, Jul 21, 2001 at 07:17:47PM -0700, Arun Sharma wrote: Greetings. I'm trying to port an application to FreeBSD. I have a signal handler registered using signal(2). It modifies the data pointed to by the third argument - of type sigcontext (specifically sc_eip) - so that the execution

Need a clean room implementation of this function

2001-07-26 Thread Arun Sharma
I'm porting a BSD licensed Java VM from Linux to FreeBSD and ran into the following Linux function which is not implemented in BSDs. To avoid GPL contamination issues, can someone complete[1] the following method in inlined IA-32 assembly ? Intel instruction reference documents an instruction

Re: Need a clean room implementation of this function

2001-07-26 Thread Arun Sharma
On Thu, Jul 26, 2001 at 11:15:40PM +0200, Bernd Walter wrote: static __inline__ int test_and_set_bit(int nr, volatile void * addr); -current has a lot of atomic functions in src/sys/i386/include/atomic.h. It has byte, word, int, long level operations - what I want is bit level.

Re: Need a clean room implementation of this function

2001-07-26 Thread Arun Sharma
On Thu, Jul 26, 2001 at 02:43:24PM -0700, John Baldwin wrote: { int val; do { val = *(int *)addr; } while (atomic_cmpset_int(addr, val, val | (1 nr) == 0); return (val (1 nr)); } Thanks! I think that'd work. But code using BTS would be

Re: Need a clean room implementation of this function

2001-07-26 Thread Arun Sharma
On Thu, Jul 26, 2001 at 11:59:27PM +0200, Bernd Walter wrote: [...] ATOMIC_ASM(set, char, orb %b2,%0, v) ATOMIC_ASM(clear,char, andb %b2,%0, ~v) [...] That does set, not test-and-set. What I want is exactly what the Intel BTS instruction does: atomically test and set a bit.

Re: Need a clean room implementation of this function

2001-07-26 Thread Arun Sharma
On Thu, Jul 26, 2001 at 03:49:58PM -0700, John Baldwin wrote: That does set, not test-and-set. What I want is exactly what the Intel BTS instruction does: atomically test and set a bit. Unfortunately that is very ia32 specific. The code would be more friendly on alpha and ia64 at least

Re: libc_r, signals and modifying sigcontext

2001-07-29 Thread Arun Sharma
On Sun, Jul 22, 2001 at 10:50:01AM -0400, Daniel Eischen wrote: Dan, I tried this patch against 4.3-STABLE (had to substitute _get_curthread() with _thread_run), without success. After the sigreturn, EIP remains the same. Should I be testing against -current ? -Arun Try this patch:

Re: libc_r, signals and modifying sigcontext

2001-07-29 Thread Arun Sharma
On Sun, Jul 29, 2001 at 09:48:30AM -0400, Daniel Eischen wrote: Can you breakpoint or add a print statement to see if the thread chosen to handle the signal is the current thread (_thread_run == thread) in the patched section below? Yes, the following condition was true according to my

truss that supports fork and rfork

2001-08-27 Thread Arun Sharma
I just ported over my old patches to truss to -current that I first posted here in May 2000: http://groups.google.com/groups?hl=ensafe=offthreadm=fa.g3c7itv.5imipd%40ifi.uio.nornum=1prev=/groups%3Fas_q%3Dtruss%26as_uauthors%3DArun%2520Sharma The new patch is here:

POSIX compatibility issue

2001-09-05 Thread Arun Sharma
Can someone take a look at this PR ? http://www.freebsd.org/cgi/query-pr.cgi?pr=30317 It's necessary to fix compilation issues for a POSIX compliant Java VM, that uses sockets. There are similar open bug reports against NetBSD too, without any comments on why this change can not be made.

NGPT port upgraded to 1.0.1

2001-09-15 Thread Arun Sharma
Added spinlock support, so that libc functions are reentrant. This is based on the Aug 3 release from the NGPT project. http://www.freebsd.org/cgi/query-pr.cgi?pr=30599 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: truss vs ktrace

2001-10-20 Thread Arun Sharma
On Wed, 17 Oct 2001 02:02:07 + (UTC), Dag-Erling Smorgrav [EMAIL PROTECTED] wrote: Jim Pirzyk [EMAIL PROTECTED] writes: So which should I use? Why is there two around? I see that truss has less command line switches than ktrace, but it is a little bit more standard. - truss slows

syscall overhead in -current

2002-12-14 Thread Arun Sharma
It seems to me that userret() in 5.0-current is adding quite a bit of overhead to the syscall latency in FreeBSD. Has anyone done any measurements of syscall latency for 4.x vs 5.x on identical hardware ? -Arun To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe

listing sysinit order ?

2003-01-18 Thread Arun Sharma
Hello, I'm trying to figure out why recent -current snapshots hang at boot/install time on my Thinkpad. The problem is, at the point where it hangs, I don't know exactly which driver it's in (yes, I have boot_verbose turned on). So my question is, is there a simple tool to list the order in

Re: listing sysinit order ?

2003-01-18 Thread Arun Sharma
Terry Lambert wrote: Arun Sharma wrote: So my question is, is there a simple tool to list the order in which various initialization/probe routines get called in mi_startup ? If not, what would it take to write one ? more /sys/sys/kernel.h Yes, I'm aware of this one, but it doesn't tell me

Re: listing sysinit order ?

2003-01-19 Thread Arun Sharma
On Sun, Jan 19, 2003 at 04:57:13AM -0800, Terry Lambert wrote: You will get the information you seem to be asking for (unless I'm misunderstanding you, and you are trying to lead upo asking for a string identifier, and for some reason you don't want to come out and ask for a modification of

verbose device probing ?

2003-01-19 Thread Arun Sharma
Having just spent 5 hours debugging a silent hang in EISA bus probe (even with boot -v) I'm tempted to ask, why doesn't device_probe_and_attach explicitly announce the device it's going to probe if bootverbose is set ? Thought I'd ask here before I submit a PR. -Arun BTW: There seem to

Re: listing sysinit order ?

2003-01-19 Thread Arun Sharma
On Sun, Jan 19, 2003 at 10:45:02PM -0800, Terry Lambert wrote: SYSINIT would at least get you to where it's hanging, and you may not need information over and above that, FWIW. Well, knowing that the kernel hangs in a function called configure (SI_SUB_CONFIGURE, SI_ORDER_THIRD) isn't terribly

Re: verbose device probing ?

2003-01-20 Thread Arun Sharma
On Mon, Jan 20, 2003 at 08:33:09AM -0800, Bruce A. Mah wrote: PS. I personally ignore the severity and priority fields of PRs. The importance of many PRs I've dealt with is very much inflated. Perhaps you should change the severity field to a lower level then ? Or is there a different

device probing not verbose when using boot -v

2003-01-20 Thread Arun Sharma
Submitter-Id: current-users Originator:Arun Sharma Organization: Confidential: no Synopsis: device probing not verbose when using boot -v Severity: Priority: Category: kern Class: sw-bug Release: FreeBSD 5.0 i386 Environment: When FreeBSD has trouble

Re: verbose device probing ?

2003-01-21 Thread Arun Sharma
On Tue, Jan 21, 2003 at 08:26:08AM -0800, Bruce A. Mah wrote: The severity and priority fields can be changed manually but that doesn't solve the problem that relying on the user-specified severity and priority fields for anything meaningful just doesn't work. If you override the

0xdeadxxxx ?

2002-06-09 Thread Arun Sharma
I just got a kernel mode page fault. I'd like to find out more about fault virtual address = 0xdeadc162 It looks like the address is meant to signal a particular class of error. Which one ? -Arun Background fsck: Fatal trap 12: page fault while in kernel mode cpuid = 0; lapic.id

Kernel hacking questions

2002-06-09 Thread Arun Sharma
1. Can I use a SMP kernel and bring it up with just one CPU on a two CPU machine ? 2. How do I trace back funcname+offset to a particular line of C code ? I tried objdump -d and gcc -S, but it's not easy to read. I thought there was a way to get gcc to interleave the C code and the

Re: 0xdeadxxxx ?

2002-06-10 Thread Arun Sharma
On Sun, Jun 09, 2002 at 11:40:09PM -0700, Terry Lambert wrote: 0xdeadc162 - 0xdeadc0de = 0x0084 = 132 decimal Look for a short value that's getting set to 132. As I said in another email, I think this is td1-td_priority in kern_mutex.c:510. -Arun To Unsubscribe: send mail to

Re: Kernel hacking questions

2002-06-13 Thread Arun Sharma
On Tue, Jun 11, 2002 at 04:36:47AM -0400, John Baldwin wrote: 2. How do I trace back funcname+offset to a particular line of C code ? I tried objdump -d and gcc -S, but it's not easy to read. I thought there was a way to get gcc to interleave the C code and the generated

pv_table/pv_entry

1999-06-01 Thread Arun Sharma
Going through the 4.4 BSD book, I learnt that the purpose of the pv_table is to be able to locate all the mappings to a given physical page. However, comparing this to the Linux approach, which chains vm_area_struct (analogous to vm_map_entry in FreeBSD) together to locate the shared mappings, it

Re: pv_table/pv_entry

1999-06-02 Thread Arun Sharma
On Wed, Jun 02, 1999 at 11:16:32AM -0700, Jason Thorpe wrote: On Tue, 1 Jun 1999 18:08:35 -0700 Arun Sharma adsha...@home.com wrote: Going through the 4.4 BSD book, I learnt that the purpose of the pv_table is to be able to locate all the mappings to a given physical page

  1   2   >