RE: COW and mprotect on non-shared memory

2003-08-14 Thread Luoqi Chen
For that reason, when you mprotect an area of non-shared, anonymous memory to no access and then back to writable, Linux has no way of knowing that the memory wasn't set for COW before you make it unwritable. It goes ahead and makes all the pages in the area COW. That means that if I do

RE: kern/40611 linux compatibility fix

2003-02-28 Thread Luoqi Chen
Dear Hackers, Is there any chance that the patch given in kern/40611 could be committed to the 4-STABLE tree? It has the desirable effect of making eg. the linux-sun-jdk14 port usable as a non-root user. This would appear to my untutored eye to be a sub-set of the differences already

RE: Network connection problem: SIS, miibus

2002-11-12 Thread Luoqi Chen
From: [EMAIL PROTECTED] [mailto:owner-freebsd-hackers;FreeBSD.ORG]On Behalf Of Paul Everlund Sent: Tuesday, November 12, 2002 10:42 AM To: [EMAIL PROTECTED] Subject: Network connection problem: SIS, miibus Hi all! Did try questions, without any reply, so I'm trying here... I have a

RE: Int 0x15 and VM86 question

2002-11-08 Thread Luoqi Chen
-Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-hackers;FreeBSD.ORG]On Behalf Of Matthew Dillon Sent: Friday, November 08, 2002 2:08 AM To: [EMAIL PROTECTED] Subject: Int 0x15 and VM86 question I've been pulling my hair out all night trying to figure out how

Atheros 802.11a chipset driver

2002-11-05 Thread Luoqi Chen
Hi, Does anyone know if someone is working on the driver for Atheros 802.11a chipset? I heard from Atheros there're people actively developing driver for Linux/FreeBSD and would probably be ready in a few months, but couldn't get any more detail. A few more months is probably more than I'm

Re: lock-ups due to the scheduler

2000-04-28 Thread Luoqi Chen
There may be additional issues with the scheduler, though they may not be related to the issue you have. Check www.freebsd.org/~dick/sched.descr I was under the impression that Peter Dufault had re-assumed this matter, but not much has happened on most of the issues. Could you add the this

Re: lock-ups due to the scheduler

2000-04-26 Thread Luoqi Chen
This is quite interesting. I'm no scheduler expert, but my understanding is priority PUSER won't degrade and is only set in kernel mode after waking up from a sleep. In user mode, processes should always have priority p_usrpri = PUSER, it is obviously not true for a negative nice value:

Yahoo under attack

2000-02-08 Thread Luoqi Chen
Just saw it in the news, http://abcnews.go.com/sections/tech/DailyNews/yahoo000207.html Does anyone know the detail? -lq To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: indirection in bus space

2000-01-24 Thread Luoqi Chen
Why have two files bus_at386.h and bus_pc98.h? I386_BUS_PIO_IND should be able to live with I386_BUS_PIO and I386_BUS_MEMIO happily together. Because they are different in the type of bus_space_tag_t from each other. It is the u_long in PC/AT and the structure in PC-98. For example,

Re: indirection in bus space

2000-01-24 Thread Luoqi Chen
I think it is difficult to implement such conversion because: - Not only bus space stuff also resource manager stuff need to perform such conversion. Why? Both bus_space_handle_t and bus_space_tag_t are supposed to be opaque types. Resource manager needs not know the implementation

Re: Accessing user data from kernel

2000-01-19 Thread Luoqi Chen
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. I have taken this for granted for a long

Re: FreeBSD-4.0 on SMP

2000-01-05 Thread Luoqi Chen
Hi, I have a 4-processor machine but I want to configure FreeBSD-4.0 to only use 1 of the processors for some tests. In addition I want the local APIC to be enabled. It seems currently that the APIC is only enabled when the kernel is compiled with the SMP option. However, when I

Re: FreeBSD-i386 and GS selector register

1999-12-07 Thread Luoqi Chen
Hi I have the next question. The FreeBSD on i386 don't use GS register, even kernel DDB don't show it. And at the time when kernel loaded and operational GS didn't initialized yet and have some garbage value (something like 0x1f, i.e. pointed to the LDT). But because no one don't touch

Re: Is part of user stack always mapped?

1999-12-06 Thread Luoqi Chen
I was under the impression that this was a no-no one should use copyin/copout friends to access memory on users's stacks. Although this appears to work on the i386, if I try this on the alpha I take a fatal trap when accessing *set. So -- how does this work on the i386? Is the user's

Re: Granularity of disk I/O

1999-11-03 Thread Luoqi Chen
:Thanks. It seems to me that for a filesystem, a block (or a fragment) is :the unit of I/O. Even if a single byte is modified, an entire block :probably consisting of multiple sectors must be written back to the disk. :As you said, there is no differnce whether we write this block one sector

Re: aio_read kills machine

1999-10-11 Thread Luoqi Chen
I am working on a small threaded program that uses aio_read(). In my first attempt to run the program it killed my machine instantly. The second time it only locked it solid. I get no messages, warnings, or errors. I am certain that my program is not correct (besides the obvious

Re: The usage of MNT_RELOAD

1999-09-08 Thread Luoqi Chen
The flag MNT_RELOAD is not documented in mount manpages. From the source code, I find that it is always used along with MNT_UPDATE which can be speficied by user (-u option). Can anyone explain the usage of MNT_RELOAD for me? It seems not to be used normally. Any help is appreciated.

Re: The usage of MNT_RELOAD

1999-09-08 Thread Luoqi Chen
The flag MNT_RELOAD is not documented in mount manpages. From the source code, I find that it is always used along with MNT_UPDATE which can be speficied by user (-u option). Can anyone explain the usage of MNT_RELOAD for me? It seems not to be used normally. Any help is appreciated.

Re: softupdates on root partition, no floppy

1999-07-19 Thread Luoqi Chen
If you boot single-user, root will be mounted read-only and you should be able to 'tunefs -n enable /dev/rda0a' and reboot. -Matt Matthew Dillon [EMAIL PROTECTED]

Re: softupdates on root partition, no floppy

1999-07-19 Thread Luoqi Chen
If you boot single-user, root will be mounted read-only and you should be able to 'tunefs -n enable /dev/rda0a' and reboot. -Matt Matthew Dillon dil...@backplane.com

Re: Repeatable kernel panic for 3.2-RELEASE NFS server

1999-05-24 Thread Luoqi Chen
I have tried gdb from 3.2-BETA, 3.2-RELEASE, and 3.2-STABLE, as well as the gdb that was built from the exact same CVS checkout as the kernel owas from, they all give the same error. -- David Cross | email: cro...@cs.rpi.edu Systems Administrator/Research

Re: Repeatable kernel panic for 3.2-RELEASE NFS server

1999-05-24 Thread Luoqi Chen
Is there anything I can do on my end (we have a complete CVS repository, synced every 4 hours. I would like to use the *exact* same gdb that we compiled the world from if possible, I am affraid of using a more recent gdb will result in not being able to read the core (I am unable to use a

Re: Repeatable kernel panic for 3.2-RELEASE NFS server

1999-05-21 Thread Luoqi Chen
gdb -k kernel.1 vmcore.1 GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is

Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )

1999-05-11 Thread Luoqi Chen
On a related note, I don't know if people use xanim, a movie viewer in the ports collection, but it's recently been upgraded to support dynamically loadable codecs. The problem is that none of the codecs are compiled for FreeBSD, although there are three Linux versions :-). To use them

Re: FreeBSD native xanim (was Re: Native Applixware for FreeBSD -- When? )

1999-05-11 Thread Luoqi Chen
On a related note, I don't know if people use xanim, a movie viewer in the ports collection, but it's recently been upgraded to support dynamically loadable codecs. The problem is that none of the codecs are compiled for FreeBSD, although there are three Linux versions :-). To use them