Getting the most out of nvi

2013-01-08 Thread Andy Zammy
Hi,

I'm interested in using nvi as my IDE for developing. I made a thread on
the forum a while ago ( for those that are interested -
http://forums.freebsd.org/showthread.php?t=34914 ), and concluded I would
get a better response here. Since creating that thread I have gained a
working understanding of how to use ctags and cscope, but I still don't
think I have the most efficient interface possible.

I'm very interested to hear how the developers here use nvi to code.

One thing I'm really struggling with is full cscope integration with nvi
and it's tags system. Basically, using :cs find will immediately open up
the first result it finds, and I can't figure out how to bring up a list of
all results in order to select the one you want to open up. Can anybody
tell me how to achieve this?

Alternatively, I could launch cscope from a shell within nvi (:!cscope blah
blah), but this would open up a new session and start a new tag stack, so
its not a very fluid way to navigate through source code.

Any general tips on coding with nvi are welcome, even if they don't help my
above situation.

Kind Regards :)
___
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


Dispersed storage solutions?

2012-09-16 Thread Andy Young
I recently came across a number of really interesting research papers about
using erasure coding techniques to store data redundantly across a number
of machines. This was pretty exciting for me because I have been looking
for this kind of technology for a while. Simply replicating our data is way
too expensive for us. I found a number of commercial products that provide
this type of solution but they are too expensive for our business model. So
... has anyone used this kind of technology with FreeBSD before? If there
isn't an existing project out there, is there enough interest to start one?

This paper gives a solid overview of the technology
http://www-bcf.usc.edu/~dimakis/RC_Journal.pdf

Andy
___
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


Question on io monitoring tools such as gstat and iostat

2012-08-28 Thread Andy Young
I am relatively new to using IO monitoring tools and wanted to confirm I
understand them correctly. If I specify an interval of 5 seconds, my
assumption is that the data displayed is an average over that 5 second
interval. Is that correct or am I misunderstanding how intervals work?

Thanks!

Andy
___
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


Ways to promote FreeBSD?

2012-04-27 Thread Andy Young
After using Linux for almost 15 years, I only recently started using
FreeBSD. I own an internet startup and was looking for a solution for
implementing large-scale storage servers. In my research I found ZFS and
subsequently found FreeBSD. As I learned more about it, I was incredibly
impressed. There are so many elements of FreeBSD that I love, I've
completely ditched Linux and am deploying FreeBSD exclusively on my
company's server infrastructure. I can't help wonder why I hadn't heard all
about it before. Sure, I knew the name, but I had never seen it in use,
either in college or in over ten years as a software developer since then.
In contrast Linux is everywhere! Even though there are so many applications
where FreeBSD seems to be a better or at least more mature solution.

What are the current efforts to promote and educate people on FreeBSD? I'd
love to help spread the word.

-- 
Andrew Young
Mosaic Storage Systems, Inc
http://www.mosaicarchive.com/
Twitter: @MosaicArchive
Facebook: Mosaic
___
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


freebsd network problem and restarts

2007-12-01 Thread Andy Rozman

Hi !

Lately after install of new hardware, I upgraded to FreeBSD 7.0 AMD64. 
Problem is that every few days (5 or so) computer network connection is 
lost, if I restart computer everything is OK again


What I need is script that will determine if connection is valid and if 
not restarting the machine. I plan to run this script by cron every 
hour... I am very lousy with writing scripts of anykind, so I would need 
little help from you...


Script must do following things:
1. Check if connection is alive by pinging one site, www.google.com 
should be good example

2a) If connection is ok, script is finished
2b) There is no response following stuff must happen:
a.) Wait for 10 minutes (or some specified time) and try step 1 
again if fails following thing are done

b.) Write line into log that connection is failed
c.) Inject mail message to local sendmail instance (so that 
mail is sent after restart)

d.) Reboot computer

If someone knows about script that does this things, I would be very 
thankful if he/she could help me. If not I would be thankful for any 
help in creating such script.


Thank you in advance.
Andy
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


[NEW PORT] ports-mgmt/pkg - smart tool for managing FreeBSD ports

2007-05-12 Thread Andy Kosela

Hi all,

I would like to present to you the new utility to deal with the ports
system. The main goal of this project is to provide one common tool
for managing ports and packages instead of relying on many
applications (pkg_add, pkg_delete, pkg_info, pkg_version etc.).
Actually it is a smart wrapper written in /bin/sh to the previously
mentioned applications. It also uses external tool portmaster written
also in /bin/sh by Doug Barton to work with the ports compiled from
source. Pkg tool automates upgrading installed packages, outputs
valuable information about packages/ports and overall simplifies
working with the FreeBSD Ports Collection. It uses no external
databases like portupgrade, just simplicity and minimalism are its
main goals.

You can test the latest version by installing the package from here
http://home.si.rr.com/pyn/pf/pkg-1.1.tbz

I commited pkg-1.0 with send-pr to the ports tree a few days ago. It
is awaiting approval...
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/112572

Feel free to send any suggestions, new ideas and of course bug
reports...
Thank you,

Andy Kosela
Pythagoras Foundation
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multiple IP Jail's patch for FreeBSD 6.2

2007-04-21 Thread Andy Hilker
You (Jan Knepper) wrote:
 Andy Hilker wrote:
 Hi,
 
 You (Jan Knepper) wrote:
   
 Any change this can be included officially at some point?
 
 
 Yes, this would be really nice. Especially because it would not be
 conflicting with using freebsd-update (without an own build server).
   
 Probably should be a configuration option (kernel config).

Why? It would be more nice to configure it with rc.conf / sysctl
if needed (because of freebsd-update).

bye,
Andy

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multiple IP Jail's patch for FreeBSD 6.2

2007-04-20 Thread Andy Hilker
Hi,

You (Jan Knepper) wrote:
 Any change this can be included officially at some point?

Yes, this would be really nice. Especially because it would not be
conflicting with using freebsd-update (without an own build server).

bye,
Andy

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-update ignores /boot/kernel/kernel sometimes!?

2007-03-01 Thread Andy Hilker
You (Andy Hilker) wrote:
 Hi,
 
 i have a strange thing here, maybe someone can give me a hint.
 
 Somehow freebsd-update find /boot/kernel/kernel on some servers and
 patches it and on others not. Both kernels are installed from CD
 (GENERIC). 
 
 On those servers where it does not display /boot/kernel/kernel,
 i can fix this by creating a symlink: ln -s /boot/kernel /boot/GENERIC
 Then it will display and patch /boot/GENERIC/kernel.  Other ways
 to fix it is nextboot or kernel variable in /boot/loader.conf, but
 i do not want a workaround on some servers.  Any idea why this can
 happen?
 
 Maybe it is related to the way how the broken kernel has been installed:
 
 From RELEASE CD:
 cd kernels
 ./install.sh GENERIC
 mv /boot/GENERIC /boot/kernel

Additional info:
it seems that all machines where it does not work, have an SMP-GENERIC
(i386) installed.

bye,
Andy
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


freebsd-update ignores /boot/kernel/kernel sometimes!?

2007-02-28 Thread Andy Hilker
Hi,

i have a strange thing here, maybe someone can give me a hint.

Somehow freebsd-update find /boot/kernel/kernel on some servers and
patches it and on others not. Both kernels are installed from CD
(GENERIC). 

On those servers where it does not display /boot/kernel/kernel,
i can fix this by creating a symlink: ln -s /boot/kernel /boot/GENERIC
Then it will display and patch /boot/GENERIC/kernel.  Other ways
to fix it is nextboot or kernel variable in /boot/loader.conf, but
i do not want a workaround on some servers.  Any idea why this can
happen?

Maybe it is related to the way how the broken kernel has been installed:

From RELEASE CD:
cd kernels
./install.sh GENERIC
mv /boot/GENERIC /boot/kernel

bye,
Andy


- Server 1 with /boot/kernel/kernel (GENERIC from release CD)
# freebsd-update fetch   
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature from update1.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 6.2-RELEASE-p2:
/boot/kernel/kernel
[...]

- Server 2 with /boot/kernel/kernel (GENERIC from release CD)
# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature from update1.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 6.2-RELEASE-p2:
 -- does *not* display /boot/kernel/kernel
 -- if symlink exists, it will patch /boot/GENERIC/kernel
[...]


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


packages problem

2006-05-08 Thread Aleksander Rozman - Andy


Hi !

I have just installed 6.1-RC1 on my second computer, and I noticed that I 
can't get any packages. I have installed the saqme version on one other 
computer about week prior, and I had no problem...


So back to problem. when I select packages install and FTP server (I 
usually use local, but today I also tried primaries and none of them has 
6.1-RC1 on it. Then I tried options - any (instead of 6.1-RC1) and none of 
servers had any (they tried to load INDEX but it failed. Is there some 
problem there? If there is problem on primary server, then it copied to all 
the mirrpors since none of them work...


Please help me, maybae I am just doing something wrong...

Andy


**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Poweredge 2850 keyboard problem

2006-02-13 Thread Andy K
Hi all,

Having googled for my problem, the only thread I 
can find is this one which doesn't appear to have a
solution:-

http://lists.freebsd.org/pipermail/freebsd-hackers/2005-April/011579.html

I recently got two Dell Poweredge servers. A 1425 and 
a 2850. I installed 6.0-RELEASE onto both. With the
1425 I have no problem, but with the 2850 the keyboard
fails to work at all.

Some details; The keyboard is plugged into the standard
purple kb input. It works fine when setting up bios
options, perc4 controller set-up, etc. The keyboard works
fine also if I boot into single user mode. However, if
I do a normal boot into multi-user mode (the keyboard 
works fine when selecting a boot option) then when I
get to the login prompt, no keyboard input at all.

I tried a USB keyboard also. Same result, works ok for
bios setting and single user mode but just doesn't work
in multi-user mode. Oddly, the Dell USB kb I have also 
has a USB optical mouse connected to the keybd. When I 
plug in, I see the kernel messages popup on the console
telling me a kb and mouse have been connected. The mouse
works fine (pointer appears and can be moved and selection
made) but the keyboard stubbornly refuses to do anything.

Any ideas anyone? (I saw a thread somewhere that upgrading
the kernel and world fixed it, however, I've cvsuped to
6-STABLE, new world and kernel and the problem still there.

It's a dual processor system but same problem with GENERIC
and a custom kernel.

regards
Andy
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sound problem

2005-08-07 Thread Aleksander (Andy) Rozman
On Tuesday 02 of August 2005 11:03, ALeine wrote:
 You may want to set the kernel variable hw.snd.pcm0.vchans to 0
 and tune other hw.snd.* kernel variables with sysctl(8).

Hi !

Problem is that if I set vchans to zero, sound stops working altogether under 
KDE. I have some weird mother board with integrated sound card and it doesn't 
work that good under FreeBSD. 

 In the future you may also want to include more details (like the
 output of `cat /dev/sndstat`) and consider posting to a more
 appropriate list (like freebsd-questions) first.

It's really hard to determine which group to send to. Since I thought this was 
software (driver) problem, I decided to post here. 

BTW I resolved the problem now. It was problem with hardware. Someone has been 
playing with my speakers in my room, and it was just that, the bass setting 
was set to 0... It works much better now. But I will probably try to applt 
that vchan patch someone posted link for.

Thanks,
Andy 

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sound problem

2005-08-01 Thread Aleksander (Andy) Rozman

Hi !

I am using FreeBSD 5.4. I have installed sound modules from kernel and 
everything work OK. But then I installed mplayer and when I play movie sound 
is weird. I know how actors should sound and they don't sound as they should. 
If I play same file under Win, then the sound is ok. Has anybody same 
problem, and where could problem lay?

Andy
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sound problem

2005-08-01 Thread Aleksander (Andy) Rozman
On Monday 01 of August 2005 20:28, you wrote:
 On Mon, Aug 01, 2005 at 10:10:15PM +, Aleksander (Andy) Rozman wrote:
  Hi !
 
  I know how actors should sound and they don't sound as they should.

 Not that I'm perfect myself, but this would be a good read for you, too :)

 http://www.catb.org/~esr/faqs/smart-questions.html

And your point was?  OK maybe I could have written it better

Here it is. Since I am no newbie this is the right place for me to post. This 
is too specific question to be posted on fbsd-question list, since the 
problem is somewhere in software.

I tried several things so far and it seems that the problem lies with 
reproduction of sound. 

I tried mplayer, kplayer, xine, and I aslo tried playing mp3 files, and all 
change the sound they should have reporduced. I am no audio expert, but I 
think that pitch of sound is wrong.

I have FreeBSD 5.4 installed, with KDE 3.3, and I have onboard sound card, 
which uses snd_ich driver. I am using the same driver at another computer, 
and it works ok there.

Hope this info will give more clues. 
Andy
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Weird problem with midnight commander (Freebsd 5.3)

2005-02-02 Thread Aleksander Rozman - Andy
Hi !
I am having weird problem. I have installed FreeBSD 5.3 on several 
machines, and on two of those machines midnight commander has serious 
problems. When I run it, it needs a long time to start, and I mean long, 
about 5 minutes or so. Did anybody have a same problem? How did you fix it. 
Oh one of those machines was fresh install, and other was update...

Andy
**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Network problem after upgrade from 5.1 to 5.3

2005-01-29 Thread Aleksander Rozman - Andy
Hi !
I am long time user of FreeBSD and for must updates so far I hadn't had 
much to do (maybe option here and option there, but networking never 
changes), but after upgrade from 5.1 to 5.3 everything stoped working. 
Since I couldn't rebuild kernel (some internal problems), I decided to 
delete everything and reinstal from scratch (last time I did this was when 
disk crashed, and that was about 5 years ago). But now again nothing works. 
I didn't change any configuration files since instalation except, rc.conf, 
and copied my firewall.conf and natd.conf...

Even after recompiled I couldn't use network. My FreeBSD is used as server 
and also router for my internal network (using NAT).

Problem:
==
If I disable firewall, natd is turned down so inside computers can't get to 
internet through FreeBSD box, if enabled, then nothing works. It seems like 
small trouble in Firewall, but I don't know why. I usually didn't make any 
changes to firewall since I am not guru there...


Config:
=
 FreeBSD BOX- dc0: external IP
  |
 V
  rl0: internal IP 192.168.44.1   -  Hub
I was using NATD and firewall (I have my own rules for both and everything 
worked before), I have compiled IPDIVERT and IPFIREWALL into kernel.

Startup rc.conf:
===
defaultrouter=xx.xx.5.1   # Set to default gateway (or NO).
firewall_enable=YES   # Set to YES to enable firewall functionality
firewall_silent=YES
firewall_type=/etc/firewall.conf  # Firewall type (see /etc/rc.firewall)
gateway_enable=YES# Set to YES if this host will be a gateway.
hostname=atechnet.dhs.org # Set this!
ifconfig_dc0=inet xx.xx.5.51 netmask 255.255.255.0
ifconfig_lo0=inet 127.0.0.1 netmask 255.255.255.0
ifconfig_rl0=inet 192.168.44.1 netmask 255.255.255.0
natd_enable=YES   # Enable natd (if firewall_enable ==YES).
natd_flags=-s -u -f /etc/natd.conf
natd_interface=dc0
network_interfaces=auto
natd.conf  (This is just for redirection of emule ports)
===
redirect_port tcp 192.168.44.2:4662 4662
redirect_port udp 192.168.44.2:4672 4672
redirect_port tcp 192.168.44.2:4711 4711
redirect_port tcp 192.168.44.1:5432 5432
redirect_port udp 192.168.44.1:5432 5432
firewall.conf   (this is open firewall with added ports for redirection)
=
add 00050 set 0 divert 8668 ip from any to any
add 00100 set 0 allow ip from any to any
add 00200 set 0 deny ip from any to 127.0.0.0/8
add 00300 set 0 deny ip from 127.0.0.0/8 to any
add 1 set 0 allow udp from any 4672 to 192.168.44.2 dst-port 4672
add 10001 set 0 allow tcp from any 4662 to 192.168.44.2 dst-port 4662
add 10002 set 0 allow tcp from any 4711 to 192.168.44.2 dst-port 4711
add 65000 set 0 allow ip from any to any

Please help me, I need to make my server active again, but I can't do that 
unless whole network is working...

Andy

**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network problem after upgrade from 5.1 to 5.3

2005-01-29 Thread Aleksander Rozman - Andy
At 29.1.2005, you wrote:
Aleksander Rozman - Andy wrote:
Even after recompiled I couldn't use network. My FreeBSD is used as 
server and also router for my internal network (using NAT).

firewall_type=/etc/firewall.conf  # Firewall type (see 
/etc/rc.firewall)
--- cut ---
firewall.conf   (this is open firewall with added ports for redirection)
=
add 00050 set 0 divert 8668 ip from any to any
add 00100 set 0 allow ip from any to any
add 00200 set 0 deny ip from any to 127.0.0.0/8
add 00300 set 0 deny ip from 127.0.0.0/8 to any
add 1 set 0 allow udp from any 4672 to 192.168.44.2 dst-port 4672
add 10001 set 0 allow tcp from any 4662 to 192.168.44.2 dst-port 4662
add 10002 set 0 allow tcp from any 4711 to 192.168.44.2 dst-port 4711
add 65000 set 0 allow ip from any to any
shouldn't firewall_type=
not say something like :
firewall_type=client
or
firewall_type=open
as described in /etc/rc.firewall !?
In older version of FreeBSD (5.1) you had open, simple, unknown, client but 
if you wanted custom setting from file, you specified file with commands. I 
tried several other options, including Open (which my file is copied from, 
plus some added stuff), and whenever I start firewall, all network stops 
(is blocked). By definition open should allow everything, but in 5.3 it 
doesn't.

Andy

(assuming that your pasted firewall.conf content is
from /etc/firewall.conf)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]
**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/*
**
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


save-entropy in jail environment

2004-01-20 Thread Andy Hilker
Hi,

do i need save-entropy cronjobs in a jail environment or is it useless?
I experience heavy load when save-entropy runs, because there are
many jails on the system.
So i wondered about if i need this only on base system...

Any ideas or hints, how to minimize the load?

bye,
Andy

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


porting linux SOCK_RAW to freebsd

2003-12-10 Thread Andy Hilker
Hi,

i try porting a little utility from linux to freebsd.
Maybe someone could give me a hint, what i am doing wrong.


-- snip --
/* Note: not portable */
// if ((s = socket(AF_INET, SOCK_PACKET, SOCK_PACKET))  0) {
// ??? ported 
if ((s = socket(AF_INET,SOCK_RAW,IPPROTO_RAW))  0) {
if (errno == EPERM)
fprintf(stderr, programm must run as root\n);
else
perror(programm: socket);
if (! debug)
return 2;
}


/* Fill in the source address, if possible.
   The code to retrieve the local station address is Linux specific. */
/* Note: not portable */
/*  
if (! opt_no_src_addr){
struct ifreq if_hwaddr;
unsigned char *hwaddr = ifr_addr.sa_data;

strcpy(if_hwaddr.ifr_name, ifname);
if (ioctl(s, SIOCGIFHWADDR, if_hwaddr)  0) {
fprintf(stderr, SIOCGIFHWADDR on %s failed: %s\n, ifname,
strerror(errno));
return 1;
}
memcpy(outpack+6, if_hwaddr.ifr_hwaddr.sa_data, 6);

if (verbose) {
printf(The hardware address (SIOCGIFHWADDR) of %s is type %d  
   %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x.\n, ifname,
   if_hwaddr.ifr_hwaddr.sa_family, hwaddr[0], hwaddr[1],
   hwaddr[2], hwaddr[3], hwaddr[4], hwaddr[5]);
}
}
   */
   // ??? ported, xx:xx:xx:xx:xx:xx = MAC Adress of sender
memcpy(outpack+6, xx:xx:xx:xx:xx:xx, 6);


   /* Note: not portable */
   /*
whereto.sa_family = 0;
strcpy(whereto.sa_data, ifname);

if ((i = sendto(s, outpack, pktsize, 0, whereto, sizeof(whereto)))  0)
perror(sendto);
else if (debug)
printf(sendto returned %d.\n, i);
   */
   // ??? ported, fxp0 = sending interface
whereto.sa_family = 0;
strcpy(whereto.sa_data, fxp0);

if ((i = sendto(s, outpack, pktsize, 0, whereto, sizeof(whereto)))  0)
perror(sendto);
else if (debug)
printf(sendto returned %d.\n, i);
-- snip --

bye,
Andy
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


4GB memory issues in current

2003-11-24 Thread Andy Hilker
Hi,

i have stability problems with a xeon dual (same problems with UP
kernel) and 4 GB of memory.
After about 1 day, one apache does not deliver content and no logins
are performed (console, ssh, ftp, ...) anymore. Console shows only
motd message and nothing more.

I have tried to set the following at loader.conf, but uptime inceases
only to 4 days:

kern.maxusers=512
kern.vm.kmem.size=45000
kern.maxvnodes=20


There was a posting about 4GB (fixed?) issues:
Von:Paul Saab ([EMAIL PROTECTED])

-- snip --
Betrifft:Re: High mem (4GB) support on FreeBSD 4.8 
Newsgroups:mailing.freebsd.hackers
Datum:2003-10-19 13:42:00 PST  
-- snip --

Could someone tell me more about this issue?

bye,
Andy





-- 
Andy Hilker  -- mailto:[EMAIL PROTECTED]
http://www.cryptobank.de --  PGP Key: https://ca.crypta.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-10-23 Thread Andy
On Thu, Oct 23, 2003 at 09:36:48AM +1000, Q wrote:
 This is interesting, and demonstrates what I have been seeing, however
 OpenBSD obviously has other issues with it's mmap implementation
 entirely separate from this discussion.

Indeed, but also note the OpenBSD graph¹
is actually two graphs, one O(n) and One O(1).

aha

¹ http://bulk.fefe.de/scalability/mmap.png
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-10-22 Thread Andy
On Wed, Oct 22, 2003 at 04:50:58PM +0100, Bruce M Simpson wrote:
 On Wed, Oct 22, 2003 at 09:40:44AM -0500, Dan Nelson wrote:
   The actual commit quote reads:
   
   use a red-black tree to find entries in the vm_map. augment the
   red-black tree to find free space between entries.  speeds up memory
   allocation, etc...
   
   I am wondering if there is a compelling reason why the technique used
   by OpenBSD could not be adapted to FreeBSD's VM system.
  
  Probably just a case of too much to do and not enough people to do
  it.  FreeBSD already has sys/tree.h, which provides the red-black tree
  macros.
 
 Now accepting patches!

You might want to have a look at fefe's research
before you take the OpenBSD way.

http://bulk.fefe.de/scalability/

aha
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: swapping over nfs might be broken

2003-05-31 Thread Andy Farkas
On Fri, 30 May 2003, David Yeske wrote:

 $ swapinfo
 Device  1K-blocks UsedAvail Capacity  Type

 Everything looks normal except for swapinfo.  It looks like nfs swapping
 is broken?

`man swapinfo` says:

BUGS
 Does not understand NFS swap servers.

--

 :{ [EMAIL PROTECTED]

Andy Farkas
System Administrator
   Speednet Communications
 http://www.speednet.com.au/



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Time problem...time is running very fast

2002-12-15 Thread Aleksander Rozman - Andy

Hi !
I have a very weird problem. Time is running very fast on my computer 
(arround 2 minutes per second - every second two minutes have passed. Some 
time ago I had the same problem with some other computer who had special 
Packet Radio card in it (which FreeBSD has no support for), but this time 
nothing special is in computer. I am running FreeBSD 4.4, machine is old 
Pentium I/ AMD 133, with two network card and graphic card (this graphic 
card is hercules(old)/vga). Does anybody have an idea where problem could be?

Andy


**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message


Re: Insider's scoop: Why FreeBSD is dying

2002-08-18 Thread Andy

Remember that Hotmail is a part of MSN, and they would have a need for that 
many IP addresses, what with their Internet content service.

Andy


At 03:48 08/18/2002, Terry Lambert wrote:
Wow.

I guess I'll address the most important point that hit home for me
from that post...

Examining the headers, it looks like Hotmail has a full class B
(64.4/16); that's surprising.  Why the heck do they have a full
class B?!?  If you are using load balancers for distribution, then
you basically need only enough IP addresses to provide publically
accessible VIPs to the various public services you export as seperate
entities.  There's no *way* they have 65,534 (subtracting out the
unusable ones) of those!

Seems to me, you could do all of Hotmail with well under a class
C, if that.  You could *probably* do it with a /28, which is the
smallest BGP routable chunk UUNET supports.

Does this seem odd to anyone else?  Is Microsoft just an address
space pig, or what?  Do they consider the IPv4 address space as
part of the company's valuation when making a purchase decision,
or is this some legacy thing with Hotmail that no one at InterNIC
bothered to correct, and they are just address rich by chance
(this seems most likely, to me)?

Inquiring minds want to know.

Maybe it's just so that if a host gets RBL'ed or otherwise
blacklisted, they can switch IPs, and won't have an interruption
of email service to their customers?  If that's the case, that
implies the SPAM turnover on those things is on the other of one
65536th of the time it takes to get off a blacklist.  That would
imply they are sending an *incredible* amount of SPAM (obviously,
that assumes a single VIP, which is really unlikely, but it's
still within an order of magnitude, asuming a LocalDirector or
other load balancer.

Anyway, that's what I got from the post...

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-chat in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: dhcp problems with my ISP

2002-08-03 Thread Andy Sparrow


 Often, once the cable company sees a MAC address, it filters all
 other MAC addresses from getting a lease from your wire.

This is true, broadly speaking. 

If they're mildly clueful (and probably if you convince them that you are), 
you may be able to get them to either add multiple MAC addresses for your 
account or simply relax the single MAC restriction if you explain that 
you're experimenting with new equipment/configurations you wish to use, and 
will be swapping equipment in and out (this is probably more likely with a 
static IP, natch).

At least for some services, it's merely your local equipment that's caching 
the MAC address - e.g. for RoadRunner service, you can simply switch off the 
cable modem long enough to let the caps discharge completely (~30-45 seconds) 
and switch it back on, and it'll be happy with whatever it saw on it's 
ethernet port when the 10/100 link comes up, but you can't hot swap routers or 
firewalls and expect it to work - the link will come up, but the cable modem 
will be deaf.. :)

HTH.

Cheers,

AS





msg36071/pgp0.pgp
Description: PGP signature


Re: dhcp problems with my ISP

2002-08-03 Thread Andy Sparrow

 Hi I have a Cable and have a Cable Modem for my internet connection of which
 you use dhcp to obtain an IP address great but this only seems to work
 successfully on a Windows machine I've registered all the other mac
 addresses of unix boxes and Apple macs I have and they seem to have alot of
 difficulty obtaining IP addresses. Especially the UNIX machines which run
 FreeBSD 4.5-RELEASE or 5.0-CURRENT on sparc64 at the moment the sparc64 box
 which is a Sun Ultra 5 which is the worst for detecting an IP with dhclient.

On that hardware, you may be experiencing issues with auto-negotiation on the 
Happy Meal ethernet. Try nailing it to a fixed port speed, this may help. Or 
not.

My Ultra-1 Just Will Not Work with some network devices, it is perfectly happy 
with others. Link link is not a reliable indicator. Sad but true.

 What I would really like to know is what does the windows dhcp do
 differently than say dhclient.

Not much - most of what it does differently is due to the different ways in 
which you can interpret the protocol spec. However, note that almost all 'Doze 
DHCP clients behave differently to each other. Heh.

See the RFC's for details, I think 2143 is the main one. The DHCP Handbook 
is well worth the money too. The ISC DHCP lists are searchable, and are 
frequently invaluable.

 I would be very interested to know as I would like a UNIX machine that can
 maintain and IP address.

I've used my FreeBSD laptop with DHCP on many, many different networks, 
running ISC v2, many flavours of v3, M$ DHCP server, Lucent QIP to name a few 
over the last ~3 years, and I've never seen any issues with any of them where 
the server itself was functional (and I'd remembered to appropriately set the 
local firewall ;-).

It maintains an IP just fine, except on networks where they have address churn 
on the DHCP server (usually due to lack of IPs in the pool).

Try plugging a hub between the modem and the external interface of the 
firewall and sniff the DHCP exchanges on another machine (you don't need an IP 
address to sniff packets) - this may not show the whole picture, in particular 
it won't show what's being sent out the WAN end of the modem, but it's a start.

If the DHCPNAK/DHCPACK packets aren't getting to the client (or bootp, 
DHCPREQ, DHCPINFORM etc. to the server), it can't ever work.

If the server responds to a bootp/DHCP packet from the client, it's a 
reasonable assumption that it's seeing at least part of the traffic generated.

Power cycle the modem, plug in the 'Doze box, repeat.

Cheers,

AS





msg36093/pgp0.pgp
Description: PGP signature


Re: dhcp problems with my ISP

2002-08-03 Thread Andy Sparrow


 Or broad-band-ly speaking?

Yes, exactly... :-)

 ATT Broadband Internet will not give you a static IP or permit
 you to run a server (they have blocking hardware in place) unless
 you sign up for business service, which means you give them
 about four times the monthly fee vs. a home connection.

Hmm. I don't see where the original post mentions any specific ISP - thus this 
is simply the policy of a single ISP, and not the one the poster is on? (In 
fact, it looks rather like the poster is in Dear Old Blighty... ;-)

Given the current plethora of misconfigured proxies spewing SPAM, I have to 
admit I'm not as incensed by this as I might once have been.

If you don't like this policy from your ISP, vote with your wallet. If you 
have no other choice in your area, then you have my sympathy. You could always 
move... :-d

PacHell (and many other DSL providers) don't gouge you for a static IP, I'm 
happy to say.

 Their technical FAQ is also enlighteining on their need for a MAC
 address: http://www.bbs.att.com/faqstech.shtml .

Hmm, I didn't actually find it to be so. Other than mentioning how to find 
your MAC on 'Doze box, I saw no reference to it at all. Perhaps I missed (or 
failed to intuit) something?

Regards,

AS






msg36094/pgp0.pgp
Description: PGP signature


(kein Betreff)

2002-06-19 Thread Andy Sporner

unsubscribe


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: mmap and MAP_NOSYNC

2002-06-18 Thread Andy Sporner

joy ganguly wrote:

Hi all,

Hi,

I want to use mmap as a means of doing IPC between
unrelated processes. I do *not* want the data to hit
the disk. So this is what I do :-

fd = open(file, O_RDWR);
p = mmap(fd, MAP_NOSYNC | MAP_SHARED);
mlock(p, len);

/* Whack around with shmem */


Now my question is , once I have wired the shared
memory region, is it possible that the data still hits
the disk ? One would think the pager will not look at
wired pages. Is that correct ?


Is there some reason not to use SYSV shared memory???

Andy



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: kernel thread

2002-06-10 Thread Andy Sporner

My fault.  I am using 5.0

Try this:

man shutdown_kproc

There was some name changes as shown:

HISTORY
 The kproc_start() function first appeared in FreeBSD 2.2.  The
 kproc_shutdown(), kthread_create(), kthread_exit(), kthread_resume(),
 kthread_suspend(), and kthread_suspend_check() functions were 
introduced
 in FreeBSD 4.0.  Prior to FreeBSD 5.0, the kproc_shutdown(),
 kthread_resume(), kthread_suspend(), and kthread_suspend_check() func-
 tions were named shutdown_kproc(), resume_kproc(), 
shutdown_kproc(), and
 kproc_suspend_loop(), respectively.


Sorry about that...  Hope this helps...


ANdy


Ferruccio Vitale wrote:

Andy Sporner wrote:

man ktread_shutdown

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message


I can't find any man pages about it; I searched on the net, grep'ed
/usr/src entirely but any results.
I've freebsd 4.6RC release.

Any advice?

Ferruccio







To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



MIB support for network devices in FreeBSD?

2002-06-08 Thread Andy Sparrow


Hi all,

(pls Cc: me on any response, not subscribed to either list)

Can't find any references to this in the archives. 

What's the status of MIB support for network interfaces in FreeBSD? Is it 
deprecated, optional, would be nice?

Reason for asking is that a dockapp I use has stopped displaying real-time 
stats since a recent upgrade. This is because the author has switched to using 
the interface MIB to collect statistics in the latest version[1].

Which in itself seems like a nice approach, except that it doesn't display 
anything for my 802.11 card, or the loopback device.

Digging around a bit with grep (in 4.6-RC) shows that only 3 devices in 
/usr/src/sys/dev seem to have implemented full MIB support, a couple more 
increment error counters, and ~20 more NIC drivers (including most all of my 
NICs)
don't apparently implement any support for MIB-based counters whatsoever[2].

Anyway, should the author of the utility be advised:

a)  Nice approach, little premature

b)  Nice approach, very premature

c)  Wrong approach, revert to previous if you want it to work with FreeBSD

d)  Other?


Also, I'd be interested to know which MIBs we intend to support, and from 
which draft/RFC it's drawn from, if anyone happens to know or can point me at 
some *BSD docs?

TIA.

Regards,

AS

[1] He added FreeBSD support to a previously Solaris/Linux-only app, but 
doesn't apparently have a FreeBSD box to test on himself, asks for feedback on 
his webpage.

[2] It's obviously not entirely that simple, 'coz I can't find any reference 
to the xl driver incrementing mib counters /either/, yet the monitor dockapp
seems to work for the built-in xl device in my laptop...






msg34905/pgp0.pgp
Description: PGP signature


Re: MIB support for network devices in FreeBSD?

2002-06-08 Thread Andy Sparrow


 I believe you can get this info if you add the net/snmp or net/snmp4
 port. 

Hi Larry,

Thanks for replying.

Hmmm. I'm talking about code that uses a FreeBSD-specific sysctl to 
interrogate the in-kernel if MIB counters, like this:

/* gather stats */
int
freebsd_sysctl_get(struct Devices*dev, unsigned long* ip,
unsigned long* op, unsigned long* ib, unsigned long* ob)
{
  struct ifmibdata* drvdata = dev-drvdata;
  int datamib[6];
  int len;

  *ip = *op = *ib = *ob = 0;

  datamib[0] = CTL_NET;
  datamib[1] = PF_LINK;
  datamib[2] = NETLINK_GENERIC;
  datamib[3] = IFMIB_IFDATA;
  datamib[4] = 1; /* fill in later */
  datamib[5] = IFDATA_GENERAL;

  datamib[4] = IFMIB_IFCOUNT;

  len = sizeof(struct ifmibdata);

  if(sysctl(datamib, 6, drvdata, len, NULL, 0)  0)
return 1;

  *ip = drvdata-ifmd_data.ifi_ipackets;
  *op = drvdata-ifmd_data.ifi_opackets;
  *ib = drvdata-ifmd_data.ifi_ibytes;
  *ob = drvdata-ifmd_data.ifi_obytes;

  return 0;
}



But these stats don't seem to be collected for at least some network card 
drivers, presumably because those drivers aren't collecting those stats, e.g. 
they don't #include net/if_mib.h, and thus don't allocate a mib structure or 
increment any counters in that structure.

I can confirm that it definately doesn't work for the 'wi' and 'lo' drivers...

However, it definately seems to work for the xl driver...

Try this:

cd /usr/src/sys/dev; find . -exec grep mib {} /dev/null \;

'awi', 'ed'  'ray' drivers seem to have the most complete implementations, 
but 'fe'  'xe' seem to have partial implementations (error counters only). 
They're relatively short, so here's one by way of illustration:

./xe/if_xe.c:#include net/if_mib.h
./xe/if_xe.c:scp-ifp-if_linkmib = scp-mibdata;
./xe/if_xe.c:scp-ifp-if_linkmiblen = sizeof scp-mibdata;
./xe/if_xe.c: scp-mibdata.dot3StatsSingleCollisionFrames++;
./xe/if_xe.c: scp-mibdata.dot3StatsCollFrequencies[0]++;
./xe/if_xe.c:   scp-mibdata.dot3StatsMultipleCollisionFrames++;
./xe/if_xe.c:   scp-mibdata.dot3StatsCollFrequencies[scp-
tx_collisions-1]++;
./xe/if_xe.c:   scp-mibdata.dot3StatsMultipleCollisionFrames += sent;
./xe/if_xe.c:  scp-mibdata.dot3StatsExcessiveCollisions++;
./xe/if_xe.c:  scp-mibdata.dot3StatsMultipleCollisionFrames++;
./xe/if_xe.c:  scp-mibdata.dot3StatsCollFrequencies[15]++;
./xe/if_xe.c: scp-mibData.dot3StatsMissedFrames++;
./xe/if_xe.c:   scp-mibdata.dot3StatsFrameTooLongs++;
./xe/if_xe.c:   scp-mibdata.dot3StatsFCSErrors++;
./xe/if_xe.c:   scp-mibdata.dot3StatsAlignmentErrors++;
./xe/if_xe.c:  scp-mibdata.dot3StatsInternalMacReceiveErrors++;
./xe/if_xevar.h:  struct ifmib_iso_8802_3 mibdata;


However, most of the drivers don't seem to have any code like this in them - 
and at least some of those drivers don't work with the 3rd-party application 
code above.

Should they? Or is this an older interface?

I'd like to advise the author so he can fix a very useful dockapp for me - or, 
if this is the way to go, I'll badger Bill Paul to fix the 'wi' driver - oh, 
wait a moment, maybe generating patches would be safer :)


Regards,

AS





msg34908/pgp0.pgp
Description: PGP signature


Re: Can I get some comment on my RFC???

2002-05-27 Thread Andy Sporner

Julian Elischer wrote:

ah that one.
I  have no view then :-)
(I have the gutt feeling it must be doable in some other way..
but can't think of it now..)

:-)  I looked at jails, but they put too much other restrictions.  It is
funny sometimes how you discover things by looking at source code.
I was adding my little thing and then saw the Jail stuff.  It seemed
exactly the right thing, but the other stuff killed it as an idea.  In
general I really don't like to reinvent the wheel, IF I can avoid it.

Thanks!




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Can I get some comment on my RFC???

2002-05-27 Thread Andy Sporner

Terry Lambert wrote:

Andy Sporner wrote:

Hi Hackers,

I would really like to have some input otherwise I might consider how
usefull my
participation on this list really is...


Well, far be it for me not to comment, particularly if the lack of
comments could hinder your future participation...

I had the impression, thought it is rapidly diminishing that only certain
people make impacts.  I guess it is all about how to ask the question ;-)


To me, this looks like a partial implementation of resource
containers, with the ability to put each process into an
arbitrary resource group


If your need is to track all processes owned by init, which is
what you say, then really, you are trying to solve a much
smaller problem than the patches you give solve.


It's possible I incorrectly stated the problem.I needed a container
system to track an application (which might include daemon processes
that normally attach themselves to init as a parent, or change their
Group id) in a way they could not shake off the tagging.  The idea
was in the cluster software to guage how much resources (by walking
the process table and adding up the resources (CPU for example)).   This
was to be used to find the best node to (re)start an application on failure
of a node or on the initial start of the application.   My initial approach
was very static (no such patch) and it worked, but not well enough.For
the sake of brevity, I wanted use the actual usage against the configured
limit (a soft limit) to make decision on where to (re)start an application.

I spent about 3 hours one afternoon in one of my better hacking
moods putting this together.


However, I think your patches are really very useful.

Coming from you, I take high regard from this, thanks!


Obviously, you could do this by GID, instead, if your different
classes of demanding users ran under different default GIDs;
and since an applicaiton could run under a GID via a single
system call, and since it's required to make a system call to
run under a different application ID...

I'm not really positive that you've done anything that's really
orthogonal to the default GID, in terms of providing additional
information -- with the exception of the inheritance.

That's the point, inheritance (and as I said I want this to be the stuff
the process can not shake off it's feet--without knowledge of how).


I would suggest that you restrict access to the cse_set_id(2)
call.  I would also suggest that you change it's name, and make
it a mux system call: it's likely that people are going to find
all sorts of things they want to do with the value of this; an
obvious one will be getcseid, and another obvious one will be
getpcseid (this latter is lacking for groups; thus your ID
bears the same relationship to GID as UID bears to GID; i.e. it's
an orthogonal credential value).

I agree, I will do this.  I also agree this this should be make as universal
as possible.  


The only sticking point *might* be the other members of
the structure that will be later used for process migration (as in Mosix).
I have a working approach to failing over network sockets, though
lacking in implementation.  With this hardware device I am making that
can switch the sheer number of trafic, I will use it as a front-end to a
cluster and as part of the migration the registration of the endpoint
will be changed on the front-end.

On another point of usage, it could be a good way of tracking affinity
of resources (as with process migration) so you don't have cross-node
page fault wars (IE: Shared memory), so that if you move one process,
you would have to move all in the group.  I would like to start a dialog
on this, but yes, I know the cluster list would be the right place ;-)

BTW:  CSE stands for (Clustered System Environment)  so a name
change would be very much needed to support a generic case.  Perhaps
the best thing is to split the patch into two and place the other members
in another structure (since it is likely to grow) and perhaps if this patch
is usefull it would be good to have it without having to have the clustering
stuff too.  

  *** Many other good points ***

Thanks for your import--that was the goal of my 'RFC'.  Now I have
enough to go back and do some more work on it.  I will post the new
changes to my website later this week along with another piece of
candy (graphical top), which was another piece salvaged from my
clustering stuff.  It's not clear if I will continue this clustering project
for many reasons (mostly time related), days seem like months when
I say I will put things out and I am sure there are those that think it
doesn't exist at all.  So this way I can do things more incrementally
if at all.

Best Regards



-Andy





To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Possible problem with rl (Realtek) ethernet card driver in 4.5-STABLE

2002-05-22 Thread Andy Sporner




Does this look like a driver bug, a hardware fault or all of the
above? I realise the realtek chips are not the best, but they
shouldn't cause a box to fall over :)

Here are the details from the core dumps I got, which led me to

Hi,

I had (in the words of Andrew Lloyd Webber) some
Strange Things Mystifying when I was writting a
device driver that were very similar.   Later I upgraded
to version 5.0 PREVIEW and the same code performed
flawlessly.  I have some deep seated suspicians that the
VIA chipset had some problems in the 4.X releases.

You might try a newer release (if not 4.5).

Cheers


Andy



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RFC- Kernel patches for process tracking (read more in body)

2002-05-22 Thread Andy Sporner

Hi hackers,

I had a need to track all processes including daemons that become owned
by init that started from a process for my statistics collection function of
my clustering software.

The basic idea is to add a structure to the 'proc' structure to keep current
and future data in and to be able to set (at least today) the application ID
into this structure via a shell command using a syscall().

Please give me comments on the patches.

*** /usr/src/sys/kern/kern_fork.c.orig  Thu May 10 19:54:16 2001
--- /usr/src/sys/kern/kern_fork.c   Thu Jan 10 16:50:25 2002
***
*** 362,367 
--- 362,369 
crhold(p1-p_ucred);
uihold(p1-p_cred-p_uidinfo);

+   bcopy(p1-p_csed, p2-p_csed, sizeof(p2-p_csed));
+
if (p2-p_prison) {
p2-p_prison-pr_ref++;
p2-p_flag |= P_JAILED;


*** /usr/src/sys/sys/proc.h.origThu Jan 10 16:56:13 2002
--- /usr/src/sys/sys/proc.h Thu Jan 10 17:00:22 2002
***
*** 53,58 
--- 53,59 
  #endif
  #include sys/ucred.h
  #include sys/event.h/* For struct klist */
+ #include sys/cse.h

  /*
   * One structure allocated per session.
***
*** 144,149 
--- 145,151 
charp_stat; /* S* process status. */
charp_pad1[3];

+   struct csed p_csed; /* Virtual Application Descriptor */
pid_t   p_pid;  /* Process identifier. */
LIST_ENTRY(proc) p_hash;/* Hash chain. */
LIST_ENTRY(proc) p_pglist;  /* List of processes in pgrp. */

*** /usr/src/sys/conf/files.origThu Jan 10 17:07:21 2002
--- /usr/src/sys/conf/files Thu Jan 10 17:07:35 2002
***
*** 575,580 
--- 575,581 
  kern/subr_scanf.c standard
  kern/subr_taskqueue.c standard
  kern/subr_xxx.c   standard
+ kern/sys_cse.cstandard
  kern/sys_generic.cstandard
  kern/sys_pipe.c   standard
  kern/sys_process.cstandard

*** /usr/src/sys/kern/syscalls.master.orig  Thu Jan 10 17:10:01 2002
--- /usr/src/sys/kern/syscalls.master   Thu Jan 10 17:10:27 2002
***
*** 520,522 
--- 520,523 
const struct kevent *changelist, int nchanges, \
struct kevent *eventlist, int nevents, \
const struct timespec *timeout); }
+ ZZZ   STD BSD { int cse_set_id(int id_num, pid_t pid); }

(NOTE 'ZZZ' changed by install script to be the next available #)


(HERE IS 'sys_cse.c')

#include opt_ktrace.h

#include sys/param.h
#include sys/systm.h
#include sys/sysproto.h
#include sys/proc.h
#include sys/uio.h
#include sys/kernel.h
#include sys/resourcevar.h
#include sys/sysctl.h
#include sys/sysent.h

/*
 * CSE system call.
 */
#ifndef _SYS_SYSPROTO_H_
struct cse_set_id_args {
int id_num;
pid_t   pid;
};
#endif
int
cse_set_id(p, uap)
struct proc *p;
register struct cse_set_id_args *uap;
{
struct proc *px;

if ((px = pfind(uap-pid)) == NULL) {
return (ESRCH);
}

px-p_csed.cse_c_id = uap-id_num;

return (0);
}

(PATCHES TO 'PS' TO MAKE USE OF THIS)

*** /usr/src/bin/ps/ps.c.orig   Wed Aug  1 07:06:23 2001
--- /usr/src/bin/ps/ps.cThu Jan 10 18:34:12 2002
***
*** 103,109 
  static voidusage __P((void));
  static uid_t  *getuids(const char *, int *);

! char dfmt[] = pid tt state time command;
  char jfmt[] = user pid ppid pgid sess jobc state tt time command;
  char lfmt[] = uid pid ppid cpu pri nice vsz rss wchan state tt time 
command;  char   o1[] = pid;
--- 103,109 
  static voidusage __P((void));
  static uid_t  *getuids(const char *, int *);

! char dfmt[] = pid tt vapp state time command;
  char jfmt[] = user pid ppid pgid sess jobc state tt time command;
  char lfmt[] = uid pid ppid cpu pri nice vsz rss wchan state tt time 
command;  char   o1[] = pid;

*** /usr/src/bin/ps/extern.h.orig   Sat Aug 28 01:14:50 1999
--- /usr/src/bin/ps/extern.hThu Jan 10 18:34:42 2002
***
*** 59,64 
--- 59,65 
  void   maxrss __P((KINFO *, VARENT *));
  void   nlisterr __P((struct nlist *));
  void   p_rssize __P((KINFO *, VARENT *));
+ void   p_vapp __P((KINFO *, VARENT *));
  void   pagein __P((KINFO *, VARENT *));
  void   parsefmt __P((char *));
  void   pcpu __P((KINFO *, VARENT *));


*** /usr/src/bin/ps/keyword.c.orig  Wed Feb 14 19:55:31 2001
--- /usr/src/bin/ps/keyword.c   Thu Jan 10 18:33:40 2002
***
*** 185,190 
--- 185,191 
{upr, UPR, NULL, 0, pvar, NULL, 3, POFF(p_usrpri), CHAR, d},
{user, USER, NULL, LJUST|DSIZ, uname, s_uname, USERLEN},
{usrpri, , upr},
+   {vapp, VAPP, NULL, 0, p_vapp, NULL, 2},
{vsize, , vsz},
{vsz, VSZ, NULL, 0, vsize, NULL, 5},
{wchan, WCHAN, NULL, LJUST, wchan, NULL, 6},


*** 

RFC (continued -- Forgot a file)

2002-05-22 Thread Andy Sporner

Sorry,

Forgot this one:

(cse.h)

#ifndef _SYS_CSE_H_
#define _SYS_CSE_H_

/*
 * One structure allocated per session.
 */
struct  csed {
int cse_c_id;   /* ID Number of Application */

/* These next fields are not being used yet, but soon... */

int cse_h_node_id;  /* Home Node ID of Process */
int cse_c_node_id;  /* Current Node ID of process */
int cse_flags;  /* Flags used. */
};

#endif  /* !_SYS_CSE_H_ */



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Is there an accepted norm on how to add members to the kernel 'PROC' structure?

2002-05-21 Thread Andy Sporner

Hello Hackers,

I have a need to add a structure to proc structure for additional 
statistics for my clustering
project.

Is this a 'holy' structure where such an addition is possible?  Are 
there limitations?  

Suggestions?

Thanks!



Andy



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: You've Been Added!

2002-05-07 Thread Andy Sporner

Aragon Gouveia wrote:

Can this sender be rejected at the MTA?


Better Idea,  how about changing MajorDomo to accept mail only from people
registered on the list.  OK. This would inconvience some people.  But in 
addition
to this, as most people are, I am also getting tired of the sex 
advertisements.

Regards



Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: You've Been Added!

2002-05-07 Thread Andy Sporner

Tore Lund wrote:

Better Idea,  how about changing MajorDomo to accept mail only from people
registered on the list.  OK. This would inconvience some people.  But in
addition
to this, as most people are, I am also getting tired of the sex
advertisements.


The reason for the inconvenience is that the list technology is behind
the times.  Many other lists - like Yahoo! groups - have options like
NOMAIL and neat ways to peruse messages online.  With such improvements
in place, anyone wanting to post could be a member without having to
receive all that mail.

I am not sure I was understood correctly.  I while ago I was a member of 
an organization
called HOSPEX.  I think it is long since dead.  In order for mail to be 
passed by the list
server you had to be registered.  IE: [EMAIL PROTECTED] would not be 
able to send
mail because he was not a member.  This doesn't solve the problem 100% 
because he could
simply just register and then spam, but it does make it a little more 
difficult.

The problem seems to be that people get lists of email reflectors (major 
domo's) and this
makes their job easier for them to send their spam.  If they are serious 
users then they won't
mind registering, but the average spammer just uses a list and doesn't 
go to the effort.  So
the idea of online perusal and even sending mail from a web-based form 
would also work
because it is not an automatic method, and thus likely not used by a 
spammer.

This then makes it work good for everybody --even unregistered or 
mail-only users.

Sounds sort of like a feature request--who does these anyways???

Regards



Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: You've Been Added!

2002-05-07 Thread Andy Sporner

Greg Black wrote:

Andy Sporner wrote irrelevant stuff:

| Tore Lund wrote more irrelevant stuff:

Please take this debate off the hackers list.  It has nothing to
do with the list's charter and is therefore unwelcome.

Greg



I disagree because I am making a suggestion of how to improve this list. 
 Since
there seems no other forum to use, I see no other place.  If you want to 
make a
constructive comment, suggest an alternative! (Please).




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: /usr/include/netinet/in.h

2002-05-07 Thread Andy Sporner

aaron wrote:

Hi,

Maybe it's just me, but I always include the fundamental .h files first, so
usually in this order (more or less):

#include sys/param.h
#include sys/types.h

...  (networking stuff)

#include unistd.h
#include stdio.h

So perhaps this is why I never saw this.   It is a simple philosophy and so
far hasn't caused me any trouble.  :-)  Not sure how it works in the 
Windoze
environment, but then again... Not interested ;-)

Hope this helps...


Andy

Hi!

I am just trying to write a simple IPv6 socket app. 
after #including netinet/in.h I noticed that I have to include sys/types.h 
BEFORE netinet/in.h which struck me as rather strange... 

Should not .h files include the depending .h files themselves so that all 
dependencies of type / struct / #define definitions are met automatically?

If not this is not what we want then we have the following problem:

#include sys/types.h
#include netinet/in.h 

   works

but

#include netinet/in.h
#include sys/types.h

does not work.

... hm... wondering if this what we want

aaron.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message






To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: load balancing with 2 nic cards possible?

2002-04-29 Thread Andy Sporner

Gary Stanley wrote:

 Is it possible to split the load of IP traffic with 2 ethernet cards 
 on a 4.x machine? I'm new to load balancing in a sense, however, I'd 
 like to try something that seems more robust

I didn't know about the 'fec' adapter (might be a good starting point). 
 I have a requirement (from a corporate project)
to see Teaming Adapters  (or faster etherchannels) for a network 
switch I am developing.  There doesn't seem to be
a driver at the same level as Intel has on the Windoze environment.  I 
want to make a design overview before I start and
would be interested in any possible reviewers,  Please email if you are 
interested (for the moment clusters is on hold! :-()

Andy





To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: load balancing with 2 nic cards possible? (Never last post)

2002-04-29 Thread Andy Sporner

Thanks for the post about netgraph.  All the better when you don't have 
to do any work...




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?)

2002-04-24 Thread Andy Sporner

Hi,

I hate to jump into this fray, but if this is going to be a public 
thread, will
everybody make the reply to the list???  :-)  So far I only see Terry's 
emails.

Thanks!



Andy

Terry Lambert wrote:

Robert Watson wrote:

On Tue, 23 Apr 2002, Terry Lambert wrote:

The reality is that reducing exposure is an important part of any security
posture.

This is an argument for security through obscurity.

If we are talking risk reduction, then we can easily achieve it
statistically through obscurity.  In fact, this is exactly what FreeBSD
does through its choice of TCP sequence numbers.

Security by obscurity refers to a behavioral phenomena in system design
and delivery, not to a technical design principle.  For example, it refers
to using a secret algorithm, but does not refer to using a secret key with
a published algorithm.  So disabling services in a default configuration
reduces risk by reducing exposure, but it's not security by obscurity.


However, if the goal is risk reduction, then securty by
obscurity arguably reduces risk.


When shipping third party code, or our own code, we accept that some code
is more at risk than other code.  That risk might be the result of
complexity, privilege, exposure, ...  Whatever the reason, it's
disingenuous to sweep it under the rug (all our code is good, so we ship
it all turned on) rather than select safe defaults and let people turn on
what they need.


This somewhat drops us into the What is UNIX? argument.  I
don't think you want to go there.


Application state is not necessary for incoming connections which are
self-identified by source and destination IP and port;  the existing
stateless firewall code can handle them completely, without introducing
problems.

X arguments that disable the X11 protocol over TCP will work regardless of
the configured TCP port for XFree86.  Firewall rules won't.  Also,
firewall rules may interfere with other applications, where X11
configuration won't.  Both have their place.


I can run sendmail on another port as well.  At some point, you
have to accept that there are Schelling points where policy and
implementation can rendesvous.  It's not reasonable to argue that
an external mechanism is unusable because someone *might* start
X11 with a different port.  They *might* start it with the argument
that reenables TCP.  The coupling argument you are making here is
specious: the default model for firewall protection is disable
everything by default, and enable only that which is explicitly
permitted.

The point is that there is already a model for TCP service protection,
and adding another frob on the side of each server for it really
obfuscates the application of a uniform model to the problem.

If we grant for a moment your argment complexity := vulnerability,
then this increase of complexity is a problem, isn't it?


Actually, it would be more useful to concentrate on so-called stealth
firewall technology, so that OS identification due to port scans, etc.,
is impossible, and so it looks as if there is no machine there
whatsoever, if there are no services actively listening AND access is
permitted to the source machine.

No doubt an interesting area to explore.


Mostly, it boils down to dropping packets instead of sending RSTs
or ACKs.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message






To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



FreeBSD Convention in EU

2002-04-22 Thread Andy Sporner

Hi,

I heard some random comment here about a possible convention (sort of like
BSDCon) in Europe.  Does anyone know about this or if there is going to be
such a thing?

I have an interest to present either on Clustering or perhaps if the 
timing is
right, a feature I am working on to bundle ethernet adapters as a single 
virtual
adaptor (idea taken from Intel Adapter Teaming).

Thanks in advance!



Andy



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: FreeBSD Convention in EU -- OK Enough said ;-)

2002-04-22 Thread Andy Sporner

I have submitted a form for a presentation.  I can only hope it is accepted.

Thanks for all of your comments!  :-)

Andy




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: Converting physical into virtual address

2002-03-07 Thread Andy Sporner


On 04-Mar-02 Valery N. Khromov wrote:
 I'd like to develop a kernel module for FreeBSD, able to read  write
 directly to VGA text-mode screen buffer. I know that this buffer is located
 at 0xB8000 in physical address space. But in kernel I must address it using
 kernel virtual address space.
 
 Thus, the question is: how can I _correctly_ convert physical address into
 kernel virtual address?
 
 Now I use the following trick: 0xC000 + 0xB8000, but I want to use more
 correct method. :)
 
 thanks.
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-hackers in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Converting physical into virtual address

2002-03-07 Thread Andy Sporner

Ok :-)

I am caught.  I hit the send key by accident when I realized I had misread
the question.  

 Andy, what were you trying to say?
 sarcasm
 Or is that the way the Linux kernel converts addresses?
 /sarcasm

Probably! :-)

Have you a name yet for 'fish?'


Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: C vs C++

2002-03-05 Thread Andy Sporner

 
 C++ doesn't add noticable overhead and isn't slow, unless you are a
 dumbass about how you write it.  All languages give you plenty of ways
 to write speghetti fortran code :-).  C++ gives you a number of ways
 to obfuscate.
 

I hate to enter such a fray, but I can pass on my experience working with a
group of engineers porting an application.  This was about 6 years ago, so
perhaps they cleared up the semantics of the problem I describe.

We had a revenue management application which ran very well on an HP-9000/G70
(a dual process PA-RISC machine).  We moved it to an 18 processor Sequent 
machine and it dominated the machine.  After investigation we found that the
application code was spending 95% of it's time in Memmove.  After even more
investigation there was an argument of interpretation on semantics.  The HP
compiler passed a pointer as a reference to an object and the Compiler from 
Edinburg was actually copying the object (which was not small by any means).

Such problems would be easy to spot in a regular 'C' program because it would
render a compiler error.  

The point made about having competant experience with C++ is very well noted
and I think the strongest argument.   So put simply, ask the boss if he want's
to add risk to the project because there is perhaps a lack of adequate
experience in C++.  If the boss has his wits about him (???) he should take
the path that would be less risky--DISPITE his own preferences (unless he want's
to pay more for well trained engineers).


Andy

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



How to write code in FreeBSD

2002-03-02 Thread Aleksander Rozman - Andy


Hi !

I was wondering if there are any guidelines how to write code in FreeBSD. I 
have taken a look at several code of FreeBSD but each is written 
differently? Problem is I don't know which is preferred way.

Reason I am asking this is that I am trying to add some code to kernel. 
Compile is OK, no error, no warning, but on link all variables defined with 
extern are marked as : undefined reference to 'variable', variable is 
extern and .h file which has it defined is included... Where can be the 
problem?? Another problem is that I get multiple definition error...how can 
I get over this.

Please help
Andy


**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Clearcase and FreeBSD

2002-02-21 Thread Aleksander Rozman - Andy

At 21.2.2002, Leo Bicknell wrote:
In a message written on Wed, Feb 20, 2002 at 10:19:01PM -0600, Mike Meyer 
wrote:
  Not necessarily. The client is free, and in the ports tree.  That
  includes the server with an evaluation license, which limits it to two
  clients and two users. Perforce offers Open Source software projects
  free multiuser - which means unlimited clients - licenses. See URL:
  http://www.perforce.com/perforce/price.html  and search for open
  source on the page. They even point to the FreeBSD license as a good
  choice for a candidate.

While necessary for a project like FreeBSD, this is not sufficient.
FreeBSD (and BSD in general) has outlived a number of companies
and technologies, and if Perforce went down the tubes and there
was no source we could have a major problem.

Now, where did I put my SCCS copy of the tree...

I think that for FreeBSD as such, CVS is so far the best sollution. It's 
free, it's good and is open.

Company I work for used ClearCase so far, but we are now slowly migrating 
towards CVS (money thing you know). Team in which I work uses MKS SI (MKS 
Source Integrity) and it's hell, if we compare it to cvs. I don't use it 
long, but I like it. It has several options of using different clients in 
different environments, so I hope FreeBSD will stay on it.

Andy



**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
*-
*


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Clearcase and FreeBSD

2002-02-20 Thread Aleksander Rozman - Andy

At 18.2.2002, you wrote:
On Sunday 17 February 2002 11:12, Robert Withrow wrote:
  Hi:
 
  I was wondering if there was anyone working on getting ClearCase working
  on FreeBSD?
 
  It seems that if we can get the Linux version of VmWare to run on FreeBSD
  it should be possible to get the Linux version of ClearCase to run on
  FreeBSD, but maybe I'm just dreamin'?
 
  -
  Robert Withrow, R.W. Withrow Associates, Swampscott MA, [EMAIL PROTECTED]

How much of ClearCase are you trying to get working?  Snapshot views might
be possible, given they don't use the mvfs filesystem.  Dynamic views are
probably hopeless without support from Rational.

The amount of stuggle that is evidenced on the ClearCase International User's
Group mailing list about getting ClearCase to work with Linux, does not bode
well for this effort.  Even though there are a few versions of Linux that are
supported by Rational.

Note here. As I remember version 4.x works on linux (I am sure for RedHat, 
but not others). So if it works for RH it should for other too As for 
views, I think that only Snapshot worked.
Why don't you use CVSUp, or are you dependent on your company??

Andy



**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Porting a device driver from NetBSD to FreeBSD

2002-02-18 Thread Andy Sporner
 that no sharing occurs.  Otherwise
I would get an interrupt for every network packet.
 
 This implies to me that:
 
 o It's a network driver
 o It works for a while and breaks
 o The FreeBSD operation is unexpectedly fast
 
 Together, this indicates that if you have the driver running
 and it locks up the system later, that you might be sharing
 an interrupt with your card, and that it might be your own
 interrupt routine which is treating someone else's interrupt
 on a shared interrupt as if it's your own, and breaking on
 that count.
 
 The much faster sort of implies that the other interrupt
 is causing your driver to poll your device, so the FreeBSD
 is faster effect you are seeing is just an illusion caused
 by the bad code.

I can say in response:

o No sharing of interrupts (that I can see in 'dmesg').
o There is no blocking to read the cause register of the
  crossbar.  If nothing is set, we just leave immediately.
o As to the much faster.  It seems a different case.

During initialization we read and write memory
on the switch devices.  This requires a PCI data
transfer to send the command to the switch (to
read the memory) and a response.  We read every
64 words (16MB Ram) and it takes 3-4 minutes on
NetBSD.  The same code in the initalization routine
on FreeBSD is so quick it almost cannot be counted.

We also see this as an impact in establishing new
connections, since establishing a new connection
requires 16 words to be transferred to the switch
memory.  

At least on Netbsd, interrupts are not enabled
during the initialization (during attach (nitro_init)).
so would not be subjected to the sharing of interrupt
situation.

 
 Alternately, you could ask Bill Paul, since he's a better
 choice than me on this sort of thing, anyway.  8-) 8-).
 
 Hope this is useful, even if it doesn't come right out
 and say here's a patch.
 

Fine enough!  I have been *VERY* pleased at the response I have been
getting in the FreeBSD world.  I had not had that much success in the
NetBSD world at all (with the exception of a new notable people).  I 
was even snubbed by Mr. Wasabi himself.  So going forward I won't 
be doing any new work on NetBSD.

Thanks again!



Andy Sporner


 -- Terry
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-hackers in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Porting a device driver from NetBSD to FreeBSD

2002-02-18 Thread Andy Sporner
 the
the NetBSD counterpart (also boots MUCH faster!) on the
exact same hardware (just swapped the boot harddisks).

2.  The Memory test transfers high bulks of data using the 
same methods as the setting of entries to handle hardware
forwarding of data.

3.  Thus if Memory test is faster this follows that the setting
of hardware forwarding entries must also be faster. 

 You probably just didn't get to the right list or the right
 people.

I was writting to tech-kern.  I would wait weeks for responses.

 
 Being unable to drop details of your hardware can also mean
 that people will have to turn their diagnostic process over
 in the email message, and a lot of people are going to be a
 bit reluctant to do that, if they go by instincts, or if they
 consider it secret.  Other people might not respond on the
 principle that the driver will end up being closed.  We have
 a lot of kooks.  ;^).

:-)  Agreed.  BTW:  As a reward for people who actually READ
posts through completely.  I am making an preview type anouncement
of my clustering software (Hi-AV) availability at:
http://www.sporner.com/bsdclusters.  I will (hopefully!!!) be 
making some more improvements in the next week or so to the 
documentation.  I have to put the stuff though another test round
to, but in principle it works.  It has to be a lower priority
than my regular work so there is no interference.

This is more or less an experiment to see how many people read
complete messages.  I will make a more formal announcment the
right way in a week or so.

Hopefully I get better luck announcing it this way.  I have tried
many times to get those TURKEYs at www.bsdtoday.com to put something
on their clustering page about it and I have yet to see or hear
anything from them.  It gets rather frustrating!

 
 In any case, good luck with your project...
 

Thanks for your help...



Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: Reading userland environnement from the kernel

2002-02-15 Thread Andy Sporner

Hi,
 
 Is there a way to read user-land environ(7) table from the kernel for a
 given process ?

You have to look at the proc structure for a process and there you will
find a buffer for the 'ps_strings' and a few offset variables to show where
the environment variables are.


Andy

 
 Cheers,
 
 --
 Laurent
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-hackers in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Reading userland environnement from the kernel

2002-02-15 Thread Andy Sporner

Hi Terry (and others!)

You seem to know a lot about the kernel (as you always expand on my
Cliff Notes versions of my answers).  Can you give me any hints on
the device driver question I posted a few days ago.  There was a 
response, however I don't see how it applies for these reasons.

   1.  When the hardware (board) is inserted, but no kernel driver 
   there are no failures.

   2.  When the hardware is installed with the minimal kernel driver
   the system locks.  The minimal kernel driver only attaches some
   resources.

   3.  When doing the full initialization of the device (which works
   in NetBSD) there are also the SAME failures as doing no 
   initialization at all of the hardware (as seen in the samples posted).

   4.   The device driver does not use MBUFS at all.

Any ideas!?? :-)

Thanks much in advance!



Andy


On 15-Feb-02 Terry Lambert wrote:
 Sansonetti Laurent wrote:
 Hi hackers,
 
 Is there a way to read user-land environ(7) table from the kernel for a
 given process ?
 
 Yes and no, or we'd already have implemented variant
 symbolic links.
 
 The problem is manifold:
 
 1)The environment is pointed to by the environ **
   pointer in the user process.  The location of
   the environ ** pointer is not well known.
 
 2)The environ ** value may be overridden by the user
   program entirely, so the pages where the data lives
   aren't where the are expected, so a saved pointer
   to envp *[] at execve time is not a workaround
 
 3)The envrion ** is require by POSUCKS (sometimes
   spelled POSIX), so getting rid of it and making
   the getenv/setenv/putenv/unsetenv functions use
   a multiplex system call is not an option that
   maintains POSIX compliance.
 
 4)It's hard to satisfy #2 and #3 and maintain binary
   compatability; the gross way you could do this is
   to save two copies of environ **, the real one at
   startup, and the shadow one called environ **,
   and then if the shadow does not match the real,
   fall back to the historical behaviour.  Synchornizing
   means that you would need to know when the change
   happens (not possible, unless you catch a write fault
   and implicitly fix it up, like SVR4 does with page
   zero pointer dereferences, unless you specifically
   tune the kernel to fault fatally on them), or you
   would have to reflect all kernel level changes into
   the user space area shadow (expensive, but doable).
 
 5)The execve() envp *[] passing is tricky, at best,
   for a modified implementation, since you have to
   read it back to pass it down.  One option, which
   fails POSIX again, is to pass the default in if
   there is a NULL passed here, for an in kernel
   implementation (actually, you don't have to pass
   anything for the user environment, if the system
   and group contain everything you care about).
 
 6)You can also put the environ ** into user pages
   (read only) that are also mapped into a pointer off
   the proc structure (read/write), so that the kernel
   changes are visible to user space.  This makes it
   so that environ ** is not writable, but it is OK
   to read it, so a minimum number of changes are
   required for system/group/user logical names.
 
 I run with a variant of #6 on one of my machines; I use the
 same page I use for the environ ** for the pid, gid, and
 other data to make them zero kernel overhead for getpid,
 getppid, getgid, etc. -- basically, any system call that
 only reads a small fixed sized data value.
 
 This still means that the environment is stored in the user
 space process, but the current environ ** is always known
 to the kernel, and if it needs to be modified, it takes a
 system call.
 
 It's pretty cool: it lets me set the environment variables
 for processes from other processes, and everyone inherits
 from init's environment (system logical name table), the
 process group leader's (if they aren't the leader themselves:
 group logical name table) and then themselves, in increasing
 priority, on getenv().
 
 But of course, it violates the writability of **environ,
 which POSUCKS wants, but I don't care (on that machine,
 signals default to restarting system calls so that my
 user space threads library is incredibly light weight, and
 getting the one-close-destroys-all-locks-even-for-other-opens
 behaviour is non-default, too... you have to fcntl(F_POSIX)).
 
 -- Terry
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-hackers in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Fwd: socket options (struct sockopt)

2002-02-14 Thread Aleksander Rozman - Andy




Hi !
I am working on implementation of AX.25 on fbsd (as you probably already 
know)... I need to know how to create socket options (for use with 
xxx_ctlinput, xxx_ctloutput, getsockopt, setsockopt)? In which part of 
code could I see how socket options are created...

Andy


**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: Fwd: socket options (struct sockopt)

2002-02-14 Thread Andy Sporner

Hi,

I hope I understand your question correctly,  The place you want
to look at is in a file in ~sys/kern/uipc_socket.c.  The function
is 'sosetopt' and is called from ~sys/kern/uipc_syscalls.c.

Additionally look in ~sys/sys/socket_var.h at the definition of
the socket structure.

Hope this helps!


Andy

On 14-Feb-02 Aleksander Rozman - Andy wrote:
 
 
 
Hi !
I am working on implementation of AX.25 on fbsd (as you probably already 
know)... I need to know how to create socket options (for use with 
xxx_ctlinput, xxx_ctloutput, getsockopt, setsockopt)? In which part of 
code could I see how socket options are created...

Andy

 
 **
 *  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
 * [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
 *[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
 * Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
 * ICQ-UIC: 4911125   *
 * PGP key available  *http://www.atechnet.dhs.org/~andy/ *
 **
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-hackers in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: BSD in a rocket.

2002-02-14 Thread Andy Sporner

Hi,

Try this for software:

http://www.picobsd.org

As for hardware perhaps the Mini-biscuit PC from advantech. I
just looked at found one that uses a 486 DX-66 with up to 32 MB
EDD RAM one compactflash socket and ethernet (CPC-2245-3200). It
goes for about 280 Euro and the development board for another 190.

Andy


On 14-Feb-02 Josef Karthauser wrote:
 I need to put together a computer to install in a small J-class
 rocket for collecting telemetry and other data.  I'd really love
 to run some kind of BSD on it and ideally land the data on a
 flash-card or such device.  I'd really appreciate any recommendations
 for an inexpensive device or development board to use for the job.
 
 Joe

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Porting a device driver from NetBSD to FreeBSD

2002-02-13 Thread Andy Sporner

Hello Everyone,

I have been trying to port a driver I had written on NetBSD to FreeBSD.  
On NetBSD the driver functions without incident, On FreeBSD, after a time
the whole system locks up.

I can create this by doing an FTP over the network interface (or sometimes
heavy disk activity).

I hope somebody can give me a hint of where I should look.  It seems that 
the PCI performance on FreeBSD is much faster in talking to this particular
devic.

Many thanks in advance!


Andy Sporner

PS: Here is the relavent attach() code for both systems:

NetBSD:
/*
 * galnet_attach()
 *
 * Here is where we attach the device to the system.
 */
void galnet_attach(struct device *parent, struct device *self, void *aux)
{
galnet_softc_t  *sc = (galnet_softc_t *)self;
struct pci_attach_args  *pa = aux;
bus_space_handle_t  memh;
bus_space_tag_t memt;
pci_chipset_tag_t   pc = pa-pa_pc;
pci_intr_handle_t   ih;
pcireg_tval;
bus_addr_t  addr;
bus_addr_t  size;
const char  *intrstr;
int flags;

printf(: GALNET-2 GT48300 Crossbar Switch\n);

memt = pa-pa_memt;

if (pci_mapreg_info(pa-pa_pc, pa-pa_tag, PCI_GNMA,
(PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT),
addr, size, flags) == 0) {
flags = ~BUS_SPACE_MAP_PREFETCHABLE;
if (bus_space_map(memt, addr, size, flags, memh)) {
printf(%s: Failed to initialize memory\n,
sc-sc_dev.dv_xname);
return;
} /* if */
} else {
printf(%s: Cannot locate mapped memory\n,
sc-sc_dev.dv_xname);
return;
} /* if */

/* Enable the device */

val = pci_conf_read(pc, pa-pa_tag, PCI_COMMAND_STATUS_REG);

val |= PCI_COMMAND_MASTER_ENABLE;

pci_conf_write(pc, pa-pa_tag, PCI_COMMAND_STATUS_REG, val);

/* Map interrupt. */

if (pci_intr_map(pa-pa_pc, pa-pa_intrtag, pa-pa_intrpin,
pa-pa_intrline, ih)) {
printf(%s: couldn't map interrupt\n,
sc-sc_dev.dv_xname);
return;
} /* if */

intrstr = pci_intr_string(pc, ih);
sc-sc_ih = pci_intr_establish(pc, ih, IPL_NET, switch_intr, sc);

if (sc-sc_ih == NULL) {
printf(%s: couldn't map interrupt, sc-sc_dev.dv_xname);

if (intrstr != NULL) {
printf( at %s, intrstr);
} /* if */

printf(\n);

return;
} /* if */

if (intrstr != NULL) {
printf(%s: %s addr=0x0%08x size=0x0%x\n, sc-sc_dev.dv_xname,
intrstr, (unsigned int)addr, (unsigned int)size);
} /* if */

sc-sc_st = memt;
sc-sc_sh = memh;
sc-addr = addr;
sc-size = size;
sc-flags = flags;
sc-sc_dmat = pa-pa_dmat;

init_nitro(sc);

return;

} /* galnet_attach() */


FreeBSD:

/*
 *  Galnet GN-48300 Driver
 */

#include freebsd_kinclude.h
#include galnet_types.h
#include galnet_proto.h


int galnet_probe(device_t dev);
int galnet_attach(device_t dev);
int galnet_detach(device_t dev);
int galnet_no_support(device_t dev);
voidgalnet_release(galnet_softc_t *sc);

static device_method_t gn_methods[] = {

DEVMETHOD(device_probe, galnet_probe),
DEVMETHOD(device_attach,galnet_attach),
DEVMETHOD(device_detach,galnet_detach),
DEVMETHOD(device_shutdown,  galnet_no_support),
DEVMETHOD(device_suspend,   galnet_no_support),
DEVMETHOD(device_resume,galnet_no_support),

{ 0, 0 }
};

static driver_t gn_driver = {
gn,
gn_methods,
sizeof(galnet_softc_t),
};

static devclass_t gn_devclass;

nitro_admin_t   *nitro_ctrl=NULL;

#define GN_VENDOR_ID0x011ab
#define GN_DEVICE_ID0x04809
#define PCI_GNMA0x10

DRIVER_MODULE(if_gn, pci, gn_driver, gn_devclass, 0, 0);

/*
 * Return identification string if this is device is ours.
 */
int galnet_probe(device_t dev)
{
if ((pci_get_vendor(dev) == GN_VENDOR_ID)  
(pci_get_device(dev) == GN_DEVICE_ID)) {
device_set_desc(dev, GALNET GN=48300);
return (0);
} /* if */

return (ENXIO);

} /* galnet_probe() */

int galnet_attach(device_t dev)
{
galnet_softc_t  *sc;
u_int32_t   i, val;
int s;
int error;

sc = device_get_softc(dev);
bzero(sc, sizeof(*sc));
error = 0;
sc-sc_dev = dev;

s = splimp();

/*
 * Enable bus

ARP and AX.25 (help needed)

2002-01-31 Thread Aleksander Rozman - Andy


Hello Everybody !

I am working on implementation of AX.25 protocol. My code also needs ARP 
and I was wondering if there is a way to use existing ARP code, or do I 
need to duplicate code and use my arp structure instead original one? I 
need arp to resolve HAM addresses to IP addresses. HAM address has seven 
u_chars (6 for callsign one one for SSID). Now if anyone has any idea how 
could I solve this without duplicating same code, I would be very thankful.

You can also contact me off-list.
Andy


**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Question about some defines

2002-01-24 Thread Aleksander Rozman - Andy

Hi !

I came accross some weird define in mbuf.h

#if 0
#define MT_SOOPTS   10
#endif

When will this define work? I need this value in my code, and I can't make 
it work. For now I used value 10 directly, but this shouldn't be done this 
way. Is this type of define, defining value that we shouldn't use or why is 
this writen in such way.

Andy




**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: Oh my god, Google has a USENET archive going back to 1981!

2002-01-09 Thread Andy

 Instead of a heat gun I saw some adventurous people use an 
 acetylene torch. Now that works quick ;-)

Lol, not too long ago I designed a PCI add in card for an imaging
company. It had quite a few DSPs and FPGAs on one side. I had no
room on the top side for the Vram chips so I mounted them on the
reverse side. Oh how I laughed when I watched the first two prototypes
come outa the machine with the 32 previously mounted Vram chips burnt
to the conveyor belt having fallen off on the second pass!

Ak

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Q regarding booting from Mylex acceleraid170

2001-12-17 Thread Andy

Originally posted to questions- with no answer,
maybe someone here can help?

cheers
Andy

-Original Message-
Sent: 12 December 2001 15:38
To: [EMAIL PROTECTED]
Subject: Q regarding booting from Mylex acceleraid170


Hi All

I have a Dell Poweredge 2550 with on board SCSI 7899 controller.
That controller is not actually fitted to any drives, only the
tape unit (DDS3).

I actually have a Mylex Acceleraid170 board attached to the four
Scsi drives creating a single drive volume. All seems to work fine
but the boot up is painfully slow, for example:-


/kernel: acd0: CDROM TEAC CD-ROM CD-224E at ata0-master using PIO4
/kernel: Waiting 3 seconds for SCSI devices to settle

[Wait 2.5 minutes here, then]

/kernel: mly0: physical device 0:6  sense data received
/kernel: mly0:   sense key 5  asc 00  ascq 00
/kernel: mly0:   info   csi 

[Wait a further 3 minutes here, then]

/kernel: mly0:  enclosure 6 unit 0 access offline
 Mounting root from ufs:/dev/da0s1a

[Wait a further 2 minutes here then]

/kernel: da0 at mly0 bus 1 target 0 lun 0
/kernel: da0: RAID 5 online  Fixed Direct Access SCSI-3 device 
/kernel: da0: 135.168MB/s transfers
/kernel: da0: 34688MB (71041024 512 byte sectors: 255H 63S/T 4422C)

[booting continues normally from here]

Anyone any idea why this is all so slow? Not complaining too 
much since it works but I can't help thinking I've done something
wrong because of this. 

fyi I'm running 4-STABLE [as of 12/12/2001] and it happens with both
GENERIC and my custom kernel. Before going to STABLE I installed R4.3
from CDRom and it did the same there also (GENERIC and custom).

cheers
Andy

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: CAN bus

2001-09-19 Thread Andy

I designed a CAN controller for an embedded app some
years ago now. However, I seem to remember the serial
bit rate was pretty slow. Here's a link to more info
if anyone's interested:

http://www.can-ucan.com/

Regards
Ak

 Subject: Re: CAN bus

 mark tinguely wrote:
 
it is quite standard in industrial environments and still popular (at
least in europe) but existant installations slowly get replaced with
ethernet based (100baseFX) or industrial ethernet (10Mbit)
 transceivers.
 
  I believe it was designed for noisy environments and is still used in
  automotive and large equipment (farm tractors, combines, etc).

 Thats why I chose it for my home automation project. There are a
 lot of places
 where I had to run the network wires right next to power wires.
 Since CAN is
 supposedly noise resistant and I don't need much bandwidth it
 seemed like a
 logical choice.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: CAN bus

2001-09-19 Thread Andy

I designed a CAN controller for an embedded app some
years ago now. However, I seem to remember the serial
bit rate was pretty slow. Here's a link to more info
if anyone's interested:

http://www.can-ucan.com/

Regards
Ak

 Subject: Re: CAN bus

 mark tinguely wrote:
 
it is quite standard in industrial environments and still popular (at
least in europe) but existant installations slowly get replaced with
ethernet based (100baseFX) or industrial ethernet (10Mbit)
 transceivers.
 
  I believe it was designed for noisy environments and is still used in
  automotive and large equipment (farm tractors, combines, etc).

 Thats why I chose it for my home automation project. There are a
 lot of places
 where I had to run the network wires right next to power wires.
 Since CAN is
 supposedly noise resistant and I don't need much bandwidth it
 seemed like a
 logical choice.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Major number request

2001-09-11 Thread Andy Schweig

Hello,

Software Technologies Group (http://www.stg.com) is currently developing a
FreeBSD driver for SBS Technologies (http://www.sbs.com) for their WANic 520
series of WAN interface cards. The design of the driver requires the creation of
a device node. Would it be possible to get a major number reserved for this
driver? Thanks for your help...

Andy Schweig
Software Technologies Group
708.547.0110 x224
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Major number request

2001-09-11 Thread Andy Schweig

Actually, it will be a Netgraph node. The idea is to use the character device
interface for configuration. Each of these cards has a 6-byte MAC address
programmed into it which can be used as a unique ID for the card. We would like
to be able to program the driver with an association between MAC address and
card number (0, 1, 2, etc.). This card number would determine the name of the
Netgraph node (e.g., wan520c0). It would seem that this configuration would
have to happen before the creation of any Netgraph nodes, which means that some
method other than Netgraph would need to be used to give the driver this mapping
information (e.g., an ioctl using the character device interface).

Another strategy occurred to me while writing this mail, namely that a default
association could be made between Netgraph node names and physical devices which
could be changed by issuing a control message to the Netgraph node. Perhaps this
is a better alternative. I would welcome any suggestions you might have for
handling this situation. Thanks again for your help...

Andy

Poul-Henning Kamp wrote:
 
 In message [EMAIL PROTECTED], Andy Schweig writes:
 Hello,
 
 Software Technologies Group (http://www.stg.com) is currently developing a
 FreeBSD driver for SBS Technologies (http://www.sbs.com) for their WANic 520
 series of WAN interface cards. The design of the driver requires the creation of
 a device node. Would it be possible to get a major number reserved for this
 driver? Thanks for your help...
 
 Hi Andy,
 
 I'm pretty sure that you should not make this a classical device but
 rather a NetGraph node.
 
 Contact [EMAIL PROTECTED] for details on NetGraph if you cannot find
 any docs on it.
 
 You may also want to look at the musycc and if_mn drivers which
 support similar cards.
 
 --
 Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
 [EMAIL PROTECTED] | TCP/IP since RFC 956
 FreeBSD committer   | BSD since 4.3-tahoe
 Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



FW: ioctl and fxp/tl drivers

2001-08-01 Thread Andy

Originally posted to -net but no replies,
maybe some here could help me out? tia, Andy

-Original Message-
To: [EMAIL PROTECTED]
Subject: ioctl and fxp/tl drivers


Hi all

This maybe a dumb question but a bit
stumped at the mo. When I make an
ioctl call to the fxp or tl drivers
thus:

 if ((ret=ioctl(s, SIOCSIFLLADDR, (caddr_t)ifr))  0)
  syslog(LOG_ERR, ioctl (set lladdr): %m);

I get:-
 
 ioctl (set lladdr): Inappropriate ioctl for device

Also, :-

 ret = ioctl(fd, addF ? SIOCADDMULTI : SIOCDELMULTI, (char *) ifr);
 if (ret) {
  syslog( LOG_ERR, Can't %s on %s: %m
  ,addF ? SIOCADDMULTI : SIOCDELMULTI
  ,ifname);
 }

I get:-

 Can't SIOCADDMULTI on fxp0: Can't assign requested address

Also, when the call is SIOCDELMULTI (rather than ADD) I get

 Can't SIOCDELMULTI on fxp0: No such file or directory

Same on the tl device. I've had a look in the driver source
and those calls appear to be supported. Can supply some debug
info if required but maybe the combined brains out there can
spot the obvious I'm missing?

tia, regards
Andy



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-net in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: Query: How to tell if Microsoft is using BSD TCP/IP code?

2001-06-28 Thread Andy

anyone seen this yet or am I slow as usual?

http://www.oreillynet.com/pub/a/dotnet/2001/06/27/dotnet.html

Ak

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: Query: How to tell if Microsoft is using BSD TCP/IP code?

2001-06-21 Thread Andy

OOPs ;)

check
http://linuxtoday.com/news_story.php3?ltsn=2001-06-20-018-20-NW-MS-SW

Ak

 Koster, K.J. said on Jun 21, 2001 at 10:24:24:
  Perhaps Lee can consider tracking down how much GLP lisenced software is
  used in companies in close proximity to Microsoft. While
 Microsoft is not
  going to be caught dead using it,

 http://www.microsoft.com/windows2000/interix/interixinc.asp
 Plenty of GNU stuff there, though it doesn't say so explicitly.
 Of course, they say it's all meant only for legacy Unix stuff.

 - Rahul

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-hackers in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: shutdown not completing

2001-06-21 Thread Andy

cross posting this to -smp and -hackers as it 
seems to be a problem there.

for those who are new to the problem, in -stable
we have reports of shutdown now hanging rather
than dropping to single user mode. 

I have a dual PIII machine. At 4.2-RELEASE I had
no problems at all. However, two/three days ago
I went to -STABLE. I now have the shutdown now
problem.

However, if I boot GENERIC I have no problem with
shutdown now. So, as an experiment I made a new
kernel based on my SMP kernel. The only change I
made was to drop the two lines which make it an
SMP kernel.

On doing shutdown now with this kernel I go
to single user mode.

So, the shutdown now problem appears to be
connected with shutting down processor #1 ??

Anyone shed light on this?

Regards
Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: shutdown not completing (more info)

2001-06-21 Thread Andy

Install:

4.2-RELEASE from CDRom, GENERIC kernel
 shutdown now works fine.

4.3-RELEASE from CDRom, GENERIC kernel
 shutdown now fails, hangs machine.

It seems I was outa touch with the SMP
idea. The 4.3-RELEASE generic kernel
(without smp) causes the problem so I
won't cross post this to -smp anymore.

But there does appear to be a problem.
The above installs were done on the
same hardware.

I'll start trying to get closer to it
but for now, believe us minority when
we say shutdown now doesn't work but
just hangs the system.

fwiw, all these *do* work...
shutdown -h now
shutdown -r now
reboot
halt

 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: Query: How to tell if Microsoft is using BSD TCP/IP code?

2001-06-18 Thread Andy [Tecc Nops]

Hmm, anyone seen this then in the Wall Street J ??
Or is this what started this thread (if so I musta
missed one somewhere along the line).

Ak

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Josef Karthauser
 Sent: 18 June 2001 11:17
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Query: How to tell if Microsoft is using BSD TCP/IP code?
 
 
 On Sat, Jun 16, 2001 at 01:16:28PM -0400, [EMAIL PROTECTED] wrote:
  is BSDI's stack so superior to any of the other BSDs that MS 
 would pay BSDI 
  for it, particularly at a time when BSDI was trying to compete 
 with MS in the 
  server market? Seems like something that a bunch of BSD 
 fanatics conjured up 
  after a few beers.
 
 Are you sure that this was Microsoft.  The press release that I remember
 from last year was a Compaq one (or was it SCO), but not Microsoft.
 
 Joe
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: Query: How to tell if Microsoft is using BSD TCP/IP code?

2001-06-18 Thread Andy [Tecc Nops]

jeez, forgot the link to WSJ

http://public.wsj.com/news/hmc/sb992819157437237260.htm

If this is what started this forgive me for being
so unobservent, we're a bit slow here in the UK
sometimes (well I am that is!)

Ak

 Hmm, anyone seen this then in the Wall Street J ??
 Or is this what started this thread (if so I musta
 missed one somewhere along the line).
 
 Ak


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



RE: Anyone see todays Wall Street Journal article: Microsoft Using Free Software (or something to that effect)

2001-06-18 Thread Andy [Tecc Nops]

Like I posted eariler..

http://public.wsj.com/news/hmc/sb992819157437237260.htm

Regards
Ak

 While I didn't read the article (I saw it when someone was reading 
 the opposite page on the subway today), I thought it might make 
 for some interesting conversation and views on the list. I will 
 try and get a URL for you all to look at later. Thanks.
 -- Jonathan


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Fixing documented bug in env(1)

2001-06-03 Thread Andy Newman

On Sun, Jun 03, 2001 at 06:56:51PM -0500, Peter Seebach wrote:
 I doubt that anyone's using either, but it's a good point.

'==' was/is part of the Bourne shell command line history stuff (*)
a few people at UofSydney hacked together in the very early '80s,
But you're right, very few people, if any, use it.

--
Andy Newman

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: new syscons screensaver

2001-05-02 Thread Andy Sloane

On Wed, May 02, 2001 at 02:16:00AM -0500, Andrew Hesford wrote:
 The screensaver isn't bad, and it gets pretty trippy when you focus at
 infinity and let the 3D-Illusions (TM) effect set in. If I were to make
 one suggestion, it would be to animate Beastie, so that he walks around
 the screen rather than teleporting everywhere.

Heh.  My main aim was to make it as low-overhead as possible for my poor
old firewall box, but animating him wouldn't add much, especially on modern
computers. :)

 However, I'm quite fond of the green_saver module, which shuts down my
 monitor after 15 minutes. Other screensavers are really just for
 entertainment; I think green_saver is the only one that serves a really
 good purpose.

I agree; however I'm running FreeBSD on my firewall box, which has an old
vga monitor which isn't DPMS-capable, so it doesn't really ever shut down
unless I turn it off.  For all I know I may be the only one who actually
uses these screensavers.  So I thought I'd try maximize my entertainment
value.

-Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: new syscons screensaver

2001-05-02 Thread Andy Sloane

On Wed, May 02, 2001 at 08:42:01PM +0200, Torbjorn Kristoffersen wrote:
 What about implementing some code from green_saver into his saver to
 enable DPMS support? And have a sysctl value to set the delay after the
 green saver will begin :) Maybe there's a better way, to let his
 beastie_saver.ko load green_saver.ko (and possibly unload itself) after a
 specified delay?

Actually, looking at the code, it would be very easy to do so.  The only
issue is how does one set the delay...  sysctl would work, I suppose, and
one could introduce a general sysctl variable for screensaver standby mode
timeout or something, and then all the other screensavers could be updated.

Or it could be handled by the underlying screensaver driver, which seems to
make more sense to me, although I don't know much about it.  (i.e. after
the timeout expires, stop calling the scrn_saver_t saver function and
perform a blank_display(V_DISPLAY_STAND_BY)...)

-Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: new syscons screensaver

2001-05-02 Thread Andy Sloane

On Wed, May 02, 2001 at 01:58:06PM -0700, Nick Sayer wrote:
 You might consider trying the apm_saver module instead, especially on
 laptops. I have found instances in the past of monitor/BIOS/video
 combinations where green didn't do the right thing but that the APM got
 right.

Both apm_saver and green_saver are essentially (once you get past all the
screensaver setup code) one-line routines to turn off the display.  I think
it would make sense to both tell the VGA chip to blank (green_saver) and
tell APM to shut down (apm_saver) with proper #ifdeffing around the APM
stuff.  

I also think it would make sense to do this inside dev/fb/splash.c (or
perhaps dev/syscons/syscons.c) instead of inside each screensaver, so that
it's automatically handled.  And maybe a new 'vidcontrol' option to set the
blanking delay (as opposed to the screensaver delay) would be necessary.
There may be an even better place to put this, but I am mostly unfamiliar
with the kernel source tree and as such I won't attempt to write a patch
for this yet.

-Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



new syscons screensaver

2001-05-01 Thread Andy Sloane

Hello,

I just wrote a new syscons screensaver which I think is much more
interesting than the other ones, while still being relatively easy on the
CPU (much less CPU intensive than fire, anyway).  Please review it and
let me know what you think.

It's the bsd daemon logo (with much editing, thanks to my coworker Waylon)
floating (with a realtime shadow!) above a bunch of tiled spheres which
move around and morph.  It's only one palette change per frame, until the
bsd daemon moves.

http://fear.incarnate.net/~andude/balls.tar.gz

I'm not on this list, so please reply directly to me.  Thanks.

-Andy


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



memory disk problem (mounted memory hangs)

2001-03-08 Thread Andy De Petter


Hello,

I have a machine, with 2Gb physical memory, of which I mount 512Mb as a
filesystem (/dev/md0c).  This partition is very heavily used, and the
machine hangs after a certain amount of time, for no obvious reason.

What I've found is this, to be configured during kernel compilation
time:

--
#
# Set the number of PV entries per process.  Increasing this can
# stop panics related to heavy use of shared memory. However, that can
# (combined with large amounts of physical memory) cause panics at
# boot time due the kernel running out of VM space.
#
# If you're tweaking this, you might also want to increase the sysctls
# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
#
# The value below is the one more than the default.
#
options "PMAP_SHPGPERPROC=201"
--

Now, I have tried this, and set PMAP_SHPGPERPROC=400, and changed set
"vm.v_free_reserved=1024" and "vm.v_free_min=1500", but still I have the
same problem, that the machine hangs after a certain amount of time.

I'm running FreeBSD 4.2-RELEASE.

Is there anything else, I should take into account, or anything I should
configure, to stop this from happening?  Because once the mounted mdisk
"hangs", the only way to unlock the machine, is to reboot it :(

Thanks,

-Andy

--
"For nothing can seem foul to those that win."
  - Henry IV, Pt1, Act 5, Sc 1

*** DISCLAIMER ***
This e-mail and any attachments thereto may contain information, which
is confidential and/or protected by intellectual property rights and
are intended for the sole use of the recipient(s) named above. Any use
of the information contained herein (including, but not limited to,
total or partial reproduction, communication or distribution in any
form) by persons other than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender
either by telephone or by e-mail and delete the material from any
computer. Thank you for your cooperation.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: if_fxp - the real point

2001-03-08 Thread Andy [TECC NOPS]

 There's a maintainer for the fxp driver, who currently happens to be out 
 of circulation.  Nobody else has stepped up to take it on because 
 obviously nobody is motivated to do the work.

Would love to step up and produce a patch, just too busy at the mo
working on other things. However, if this thread is still raging
when I get some spare time I'd be happy to contib code.

In the meantime, I'll just continue reading this cute conversation.

Ak

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: memory disk problem (mounted memory hangs)

2001-03-08 Thread Andy De Petter


I've been able to reproduce this problem, with "yes  /mnt/my_mdisk".
After it grows 'till about 100Mb (which might be coincidance) used, it hangs
again.

Do I have to "reserve" memory, for my mdisk, and if so, with which sysctl
parameters, and which values to give them, for 512Mb mdisk?

-a

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Andy De Petter
 Sent: donderdag 8 maart 2001 17:56
 To: [EMAIL PROTECTED]
 Subject: memory disk problem (mounted memory "hangs")



 Hello,

 I have a machine, with 2Gb physical memory, of which I mount 512Mb as a
 filesystem (/dev/md0c).  This partition is very heavily used, and the
 machine hangs after a certain amount of time, for no obvious reason.

 What I've found is this, to be configured during kernel compilation
 time:

 --
 #
 # Set the number of PV entries per process.  Increasing this can
 # stop panics related to heavy use of shared memory. However, that can
 # (combined with large amounts of physical memory) cause panics at
 # boot time due the kernel running out of VM space.
 #
 # If you're tweaking this, you might also want to increase the sysctls
 # "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
 #
 # The value below is the one more than the default.
 #
 options "PMAP_SHPGPERPROC=201"
 --

 Now, I have tried this, and set PMAP_SHPGPERPROC=400, and changed set
 "vm.v_free_reserved=1024" and "vm.v_free_min=1500", but still I have the
 same problem, that the machine hangs after a certain amount of time.

 I'm running FreeBSD 4.2-RELEASE.

 Is there anything else, I should take into account, or anything I should
 configure, to stop this from happening?  Because once the mounted mdisk
 "hangs", the only way to unlock the machine, is to reboot it :(

 Thanks,

 -Andy

 --
 "For nothing can seem foul to those that win."
   - Henry IV, Pt1, Act 5, Sc 1

 *** DISCLAIMER ***
 This e-mail and any attachments thereto may contain information, which
 is confidential and/or protected by intellectual property rights and
 are intended for the sole use of the recipient(s) named above. Any use
 of the information contained herein (including, but not limited to,
 total or partial reproduction, communication or distribution in any
 form) by persons other than the designated recipient(s) is prohibited.
 If you have received this e-mail in error, please notify the sender
 either by telephone or by e-mail and delete the material from any
 computer. Thank you for your cooperation.


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-hackers" in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Protections on inetd (and /sbin/* /usr/sbin/* in general)

2001-01-19 Thread Andy Farkas


I've said it before, and I'll say it again:

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13606

 Tony Finch [EMAIL PROTECTED] writes:
  Apache itself has support for setting resource limits, although I
  agree that in many cases you may want them to be different between the
  httpd and the CGIs.
 
 You most emphatically do not want to do that. You want the CGI to run
 with its owner's resource limits.
 
  I expect chrooting was left out because people who have the wit to set
  up a chroot are capable of adding a couple of lines to a C program.
 
 Said program has a big fat warning at the top that says something like
 "do not ever change this program, you'll only screw it up"... I'm
 tempted to reply "not much more than it already is". Eivind and I
 rewrote it for our previous employer, but the mod is part of a large
 chunk of proprietary code, unfortunately.
 
 DES
 -- 
 Dag-Erling Smorgrav - [EMAIL PROTECTED]
 

--
 
 :{ [EMAIL PROTECTED]
  
Andy Farkas
System Administrator
   Speednet Communications
 http://www.speednet.com.au/
  




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Onboard Intel NIC

2000-03-27 Thread Andy

On Mon, 27 Mar 2000, Dennis wrote:

 If you dont have time then perhaps someone else should do it. THATS the
 point. 
snip
 Plus I've already fixed it myself. So if you fix it its not for me at all.

Since you appear to have fixed the problems and updated the code,
would you like to submit it for review?

-- 

|  Andy   | e-mail  |  web   |
| | [EMAIL PROTECTED] | www.lewman.com |

I have more humility in my little finger than you have in your whole
BODY!
-- from "Cerebus" #82



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Why not gzip iso images?

2000-03-17 Thread Andy

"Daniel C. Sobral" wrote:

At this point, I'd just like to see the iso available, I don't care if
it is compressed or not. :P

 To ALL PEOPLE complaining about the size:

-- 

|  Andy   | e-mail  |  web   |
| | [EMAIL PROTECTED] | www.lewman.com |

You will remember, Watson, how the dreadful business of the
Abernetty family was first brought to my notice by the depth which the
parsley had sunk into the butter upon a hot day.
-- Sherlock Holmes
 S/MIME Cryptographic Signature


Re: Strange problem with NFS

1999-12-16 Thread Andy Doran

On Thu, 16 Dec 1999, Matthew Dillon wrote:

 Looks like a firewall to me.  Either a firewall in a router
 sitting between the hosts, or an ipfw setup sitting on one or the 
 other host.

I set up the NFS server in question ages ago. I haven't looked at the
problem, but... The server does use ipfw. The broken client is on the same
subnet as the working ones and nothing in the server's ipfw ruleset refers
directly to the broken client.

- ad



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Solaris 2.7 ufs file systems ...

1999-12-16 Thread Andy Doran

I know little about all things Sun, but a quick grep in NetBSD-current
reveals:

sys/dev/sun/disklabel.h
sys/arch/sparc/sparc/disksubr.c

Could be what you're looking for.

- ad



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: aio_read kills machine

1999-10-11 Thread Andy Farkas


On Mon, 11 Oct 1999, Chris Costello wrote:

Not really.  The fact is that a user program can crash
 3.3-STABLE and that is unacceptable.  No user program should be
 able to bring down a system, _especially_ in -STABLE.
 

Running ``nmap -sP 172.22.0.0/16'' as a normal user will cause a panic on
a recent 3.3-STABLE system :(

--
 
 :{ [EMAIL PROTECTED]
  
Andy Farkas
System Administrator
   Speednet Communications
 http://www.speednet.com.au/
  




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: aio_read kills machine

1999-10-11 Thread Andy Farkas


On Mon, 11 Oct 1999, Mike Smith wrote:

  Running ``nmap -sP 172.22.0.0/16'' as a normal user will cause a panic on
  a recent 3.3-STABLE system :(
 
 Could you be any less specific about the panic?  Any sort of detail is 
 just going to make us want to fix it.

Here most of the message I posted to -stable:

snip
*From [EMAIL PROTECTED] Tue Oct 12 07:20:08 1999
Date: Mon, 27 Sep 1999 19:43:21 +1000 (EST)
To: [EMAIL PROTECTED]
Subject: nmap V. 2.3BETA5 causes panic

The system will panic with an 'out of mbufs' message when I run the above
nmap command ("ping scan" a class B subnet - my internal IP network).

Should this be happening when run as a normal user??  The kernel is pretty
stock with maxusers 32, no NMBCLUSTERS option, unneeded devices removed.  
There is 64M RAM and 256M swap; it is has dual 90MHz P54C's.

This system (my workstation) is a:
FreeBSD 3.3-STABLE #0: Mon Sep 20 09:44:35 EST 1999

I am:
bash-2.03$ id
uid=1000(andyf) gid=1000(andyf) groups=1000(andyf), 0(wheel)

I have:
bash-2.03$ limits
Resource limits (current):
  cputime  infinity secs
  filesize  1048576 kb
  datasize65536 kb
  stacksize8192 kb
  coredumpsize   131072 kb
  memoryuse   65536 kb
  memorylocked 8192 kb
  maxprocesses  256
  openfiles 256

I use:
bash-2.03$ 

How would you go about preventing this problem?

Thanks.
snip

 
 -- 
 \\ Give a man a fish, and you feed him for a day. \\  Mike Smith
 \\ Tell him he should learn how to fish himself,  \\  [EMAIL PROTECTED]
 \\ and he'll hate you for a lifetime. \\  [EMAIL PROTECTED]
 
 

--
 
 :{ [EMAIL PROTECTED]
  
    Andy Farkas
System Administrator
   Speednet Communications
 http://www.speednet.com.au/
  




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: aio_read kills machine

1999-10-11 Thread Andy Farkas


On Mon, 11 Oct 1999, Steven Ames wrote:

 Could someone define what NMBCLUSTERS is and what it is used for? I've
 seen a lot of cases where increasing it (beyond the default 1024?) has 
 helped systems be more stable, but what is it?
 

Here is an informative email from David Greenman:

snip
From [EMAIL PROTECTED] Tue Oct 12 08:07:20 1999
Date: Mon, 17 May 1999 18:58:06 -0700
From: David Greenman [EMAIL PROTECTED]
To: Nicole Harrington [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED], Brian Behlendorf [EMAIL PROTECTED]
Subject: Re: maxusers/nmbclusters 

 I have read that if you have needs that would require turning up NMBclusters,
and certain sysctl options, etc, that you should do so independantly and not
increase maxusers up much above 256. Will that recomendation change with 3.2 as
well?

   If you specify NMBCLUSTERS, then you only need to tune maxusers for
increased number of processes (nproc = 16 * maxusers). This is true in all
versions of FreeBSD.

-DG

David Greenman
Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org
Creator of high-performance Internet servers - http://www.terasolutions.com
snip

 -Steve
 

--
 
 :{ [EMAIL PROTECTED]
  
Andy Farkas
System Administrator
   Speednet Communications
 http://www.speednet.com.au/
  




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: IPv6 on 3.2 STABLE ?

1999-09-21 Thread Andy Doran

On Wed, 22 Sep 1999, Ollivier Robert wrote:

 NetBSD  OpenBSD has decided to use one of the last two for themselves
 (although I always forgot who took what -- I think NetBSD took INRIA and
 OpenBSD NRL but I could be wrong).

FWIW, the KAME implementation was integrated into NetBSD-current around
the start of July.

- ad



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: nobody knows the answer?

1999-09-02 Thread Andy Farkas


On Wed, 1 Sep 1999, David Scheidt wrote:

 You have almost certainly run out of file fragments.  Space on FFS
 filesystems is allocated in the from of blocks, which are divided into
 fragments.  These blocks are not the same as the physical disk blocks, but
 are a number of sequential disk blocks.  The default FFS block size is 8KB.
 Each FFS block is subdivided into fragments.  The default is 8 fragments per
 block, giving a default frag size of 1KB.  

A very nice, simple, explanation.

What are Cylinder Groups for?

 
 David Scheidt
 

--
 
 :{ [EMAIL PROTECTED]
  
Andy Farkas
System Administrator
   Speednet Communications
 http://www.speednet.com.au/
  




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Buslogic/Bustek/Storage Dimensions driver (MCA)

1999-09-02 Thread Andy Farkas


On Wed, 1 Sep 1999, Matthew N. Dodd wrote:

 I've rewritten the bt_mca driver to hopefully do the right thing.  I was
 trying to avoid excess code but I'll worry about trimming stuff down
 later.
 
 Get the new versions of {aha,bt}_mca.c and recompile.

linking kernel
bt_mca.o: In function `bt_mca_alloc_resources':
bt_mca.o(.text+0x38): undefined reference to `mca_get_irq'
bt_mca.o(.text+0x70): undefined reference to `mca_get_irq'
*** Error code 1


 
 Thanks for doing such a good job of testing!
 

No wukkas.

Could I suggest you show a timestamp or version number for the list of
files on your web page?


 -- 
 | Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
 | [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
 | http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-hackers" in the body of the message
 

--
 
 :{ [EMAIL PROTECTED]
  
    Andy Farkas
System Administrator
   Speednet Communications
 http://www.speednet.com.au/
  




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: nobody knows the answer?

1999-09-02 Thread Andy Farkas

On Wed, 1 Sep 1999, David Scheidt wrote:

 You have almost certainly run out of file fragments.  Space on FFS
 filesystems is allocated in the from of blocks, which are divided into
 fragments.  These blocks are not the same as the physical disk blocks, but
 are a number of sequential disk blocks.  The default FFS block size is 8KB.
 Each FFS block is subdivided into fragments.  The default is 8 fragments per
 block, giving a default frag size of 1KB.  

A very nice, simple, explanation.

What are Cylinder Groups for?

 
 David Scheidt
 

--
 
 :{ an...@speednet.com.au
  
Andy Farkas
System Administrator
   Speednet Communications
 http://www.speednet.com.au/
  




To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message



Re: Buslogic/Bustek/Storage Dimensions driver (MCA)

1999-09-02 Thread Andy Farkas

On Wed, 1 Sep 1999, Matthew N. Dodd wrote:

 I've rewritten the bt_mca driver to hopefully do the right thing.  I was
 trying to avoid excess code but I'll worry about trimming stuff down
 later.
 
 Get the new versions of {aha,bt}_mca.c and recompile.

linking kernel
bt_mca.o: In function `bt_mca_alloc_resources':
bt_mca.o(.text+0x38): undefined reference to `mca_get_irq'
bt_mca.o(.text+0x70): undefined reference to `mca_get_irq'
*** Error code 1


 
 Thanks for doing such a good job of testing!
 

No wukkas.

Could I suggest you show a timestamp or version number for the list of
files on your web page?


 -- 
 | Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
 | win...@jurai.net |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
 | http://www.jurai.net/~winter | This Space For Rent  | ISO8802.5 4ever |
 
 
 
 To Unsubscribe: send mail to majord...@freebsd.org
 with unsubscribe freebsd-hackers in the body of the message
 

--
 
 :{ an...@speednet.com.au
  
Andy Farkas
System Administrator
   Speednet Communications
 http://www.speednet.com.au/
  




To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-hackers in the body of the message



  1   2   >