How to use "offset" parameter in mmap() system call

2005-09-28 Thread Apache Xie
Hi, I wrote a device driver, it supports mmap(), but I met some problems recently, it seems relate to the "offset" parameter in mmap() system call, what I want to get help are: How to use the offset parameter of mmap() correctly? Can it be used freely? My driver is a char device driver, when it

Re:

2005-09-28 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> rashmi ns <[EMAIL PROTECTED]> writes: : Hello All , : I was trying to add a new ioctl cnd like : #define HDLCMODE _IOR('6',0xF,int) : when i try to uprintf the data which was sent from the user-space in the : device-driver-ioctl-routine i'll get a differe

Re: journaling fs and large mailbox format

2005-09-28 Thread Eric Anderson
Alin-Adrian Anton wrote: Dear Hackers, First of all thank you for your time and attention. I am in the position to implement a large-scale mail server and I will never go for anything else but FreeBSD (fixation?). It should be able to handle graceously 4000 e-mail accounts where

journaling fs and large mailbox format

2005-09-28 Thread Alin-Adrian Anton
Dear Hackers, First of all thank you for your time and attention. I am in the position to implement a large-scale mail server and I will never go for anything else but FreeBSD (fixation?). It should be able to handle graceously 4000 e-mail accounts where a minimum of 50 Mb/mailbox

Re: FreeBSD 5.4 AMD64 & MPD

2005-09-28 Thread Daniel O'Connor
On Thursday 29 September 2005 04:30, Daniel Dias Gonçalves wrote: > I installed MPD and it doesn't start, NETGRAPH is enable on kernel. > > # mpd > Multi-link PPP for FreeBSD, by Archie L. Cobbs. > Based on iij-ppp, by Toshiharu OHNO. > mpd: pid 34373563800, version (null) > mpd: caught fatal signa

System hang / extreme slowdown under MySQL

2005-09-28 Thread Murray Taylor
We are using MySQL on a FreeBSD box for one of our systems and recently after doing a number of application code changes to support a new client the system experiecned what seemed to be a total hang. It didnt crash per se, no log messages were caught it just went mostly unresponsive. The da

FreeBSD 5.4 AMD64 & MPD

2005-09-28 Thread Daniel Dias Gonçalves
I installed MPD and it doesn't start, NETGRAPH is enable on kernel. # mpd Multi-link PPP for FreeBSD, by Archie L. Cobbs. Based on iij-ppp, by Toshiharu OHNO. mpd: pid 34373563800, version (null) mpd: caught fatal signal @ mpd: fatal error, exiting mpd: process 6126 terminated # Last lines in kt

Re: FATAL: erealloc(): Unable to allocate 577925121 bytes

2005-09-28 Thread Eric Anderson
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2005-09-27 05:39:10 -0400: when trying to d/l the following file 1 www www 551M Sep 16 13:23 20050818002.zip via apache1.3.33/php 4.3.11, i get that in the logs i thought it was because i dont have enough swap so i did [...] See ul

Re: [EMAIL PROTECTED]: invalid geometry for >1TB]

2005-09-28 Thread Eric Anderson
Bogdan Taru wrote: On Wed, Sep 28, 2005 at 12:34:47PM -0500, Eric Anderson wrote: Bogdan Taru wrote: Hi hackers, tryin' to install 4.11 or 5.x on a Dell box with a Perc 3/Di Raid controller (with 5x 300GB scsis). I get 'invalid geometry' when running sysinstall/fdisk on the 'disk', t

Re: [EMAIL PROTECTED]: invalid geometry for >1TB]

2005-09-28 Thread Bogdan Taru
On Wed, Sep 28, 2005 at 12:34:47PM -0500, Eric Anderson wrote: > Bogdan Taru wrote: > > Hi hackers, > > > > tryin' to install 4.11 or 5.x on a Dell box with a Perc 3/Di Raid > >controller (with 5x 300GB scsis). I get 'invalid geometry' when running > >sysinstall/fdisk on the 'disk', the geometr

Re: [EMAIL PROTECTED]: invalid geometry for >1TB]

2005-09-28 Thread Eric Anderson
Bogdan Taru wrote: Hi hackers, tryin' to install 4.11 or 5.x on a Dell box with a Perc 3/Di Raid controller (with 5x 300GB scsis). I get 'invalid geometry' when running sysinstall/fdisk on the 'disk', the geometry presented being: 145815 cyl / 255 heads / 63 sectors I tried to press

[EMAIL PROTECTED]: invalid geometry for >1TB]

2005-09-28 Thread Bogdan Taru
Hi hackers, tryin' to install 4.11 or 5.x on a Dell box with a Perc 3/Di Raid controller (with 5x 300GB scsis). I get 'invalid geometry' when running sysinstall/fdisk on the 'disk', the geometry presented being: 145815 cyl / 255 heads / 63 sectors I tried to press 'A' for allocate th

Re: freebsd-5.4-stable panics

2005-09-28 Thread Rob Watt
On Sun, 25 Sep 2005, Robert Watson wrote: > > On Fri, 23 Sep 2005, Jason Carroll wrote: > 5B > > There seem to be 2 types of crashes we see with pretty different stack > > traces. What I'll call a type 1 crash, I believe, is often caused by > > one of the triggers I mention above. A type 2 crash

Re: freebsd-5.4-stable panics

2005-09-28 Thread Rob Watt
On 9/27/05, Robert Watson <[EMAIL PROTECTED]> wrote: > > On Tue, 27 Sep 2005, Rob Watt wrote: > > > Is this an SMP box? If so, could you try compiling options KDB_STOP_NMI > into your kernel -- you'll also need to set debug.kdb.stop_cpus_with_nmi=1 > in either loader.conf or at runtime with sysctl

Re: FATAL: erealloc(): Unable to allocate 577925121 bytes

2005-09-28 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-09-27 05:39:10 -0400: > when trying to d/l the following file > > 1 www www 551M Sep 16 13:23 20050818002.zip > > via apache1.3.33/php 4.3.11, i get that in the logs > i thought it was because i dont have enough swap so i did [...] See ulimit(1), search f

Re: IOCTL :Facing problems while acccessing data from kernel space

2005-09-28 Thread Simon 'corecode' Schubert
rashmi ns wrote: #define HDLCMODE _IOR('6',0xF,int) when i trying to uprintf the data which was sent from the user-space in the device-driver-ioctl-routine i'll get a different value than which was passed. Can anybody please tell me why this is happening . I pass the address of an integer where d

IOCTL :Facing problems while acccessing data from kernel space

2005-09-28 Thread rashmi ns
> Hello All , Sorry for resending the message many times !!!. I was trying to add a new ioctl command like > #define HDLCMODE _IOR('6',0xF,int) > when i trying to uprintf the data which was sent from the user-space in > the device-driver-ioctl-routine i'll get a different value than which was >

Re:

2005-09-28 Thread rashmi ns
Hello All , I was trying to add a new ioctl cnd like #define HDLCMODE _IOR('6',0xF,int) when i try to uprintf the data which was sent from the user-space in the device-driver-ioctl-routine i'll get a different value than which is passed. Can anybody please tell me why this is happening . I pass the

(no subject)

2005-09-28 Thread rashmi ns
Hello All , I was trying to add a new ioctl cnd like #define HDLCMODE _IOR('6',0xF,int) ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROT

nonprivileged access to ipfw

2005-09-28 Thread Andrey V. Elsukov
Hi All! I want a nonprivileged access to ipfw (without sudo, suid and etc..). But RAW sockets restrict this. I have an one idea - a pseudo device /dev/ipfw. I think that realisation of this feature is not difficult task. Now i have some questions. 1. I think correctly about following? * adding cd