Re: AHCI driver and static device names

2011-12-15 Thread perryh
CyberLeo Kitsana cyber...@cyberleo.net wrote:
 On 12/14/2011 03:18 PM, Rob wrote:
  Case in point.  I have a system with 15 drives in it.  I decided
  I wanted to install on the 2nd device instead of the 1st, but
  I partitioned all the other 14 drives.  I completed installation
  and when to boot the system and it failed.  Stupid me, the GPT
  boot loader found disk1 with a partitioning scheme but no fs.
  So, I popped out disk 1 and when to boot again.  Hey, now it
  starts to boot only to fail to find the root fs because it's
  looking on ada1 and the fs is on ada0.  That is a mess.

 Sounds like a bug in the BIOS or boot loader. The boot loader
 should be able to ask the BIOS for the device from which it
 read the boot code, and use that instead of just naively using
 the first available device in the system ...

The BIOS does pass the BIOS disk number (0x80, 0x81, ...) to the
bootloader.  That's fine as long as the bootloader is using BIOS
calls to read the disk, but how does the BIOS disk number get
mapped, reliably, to an OS device identification?  The BIOS can't
do it, because it knows nothing about the OS, so the OS would have
to do it = the OS must know a lot of detail about every BIOS on
which it will ever run.  This does not seem very practical, and
that's at least part of the reason why labels were invented.

I suppose if someone wanted to track down the official way of
solving this problem, they could look into how Windows handles it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: acpi problem on dell latitude d830

2011-12-15 Thread Frank Staals
Ouyang Xueyu free...@suiyuan.de writes:

 Hello!

 I`ve just installed freebsd 8.2 i386 stable on a Dell Latitude D830.
 I`m using gnome 2 with HAL and DBUS successfully.

 My notebook is not able to go into sleeping mode, it doesn`t work when I use
 acpiconf -s 3 or acpiconf -s 4. Mode S3 gets it into sleep mode, but it
 freezes
 after wake-up with a distorted screen.
 In mode S4 (suspend-to-disk) it isn`t even able to
 get into sleeping mode. I want to initiate S4 state by closing the lid.

I have a Latitude D630, which is basically the smaller brother of the
D830. When it ran FreeBSD I had success in getting the D630 to sleep
(s3) and resume. This was a while ago on 8-STABLE with amd64. At least
back then, you would need an amd64 install to get this working
(something with acpi being better in amd64 then it was in i386). I am
not sure that is still the case, but I would not be surprised if it
is. However, before you run off and reinstall: (again back then) both
the bge and wpi driver (i.e. LAN and WLAN) did not work properly after
resuming. This basically made sleeping the laptop useless.

I'm not sure this is such good news, but I hope it is informative. If
you manage to get it working let me know.

Regards,

-- 

- Frank
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: AHCI driver and static device names

2011-12-15 Thread CyberLeo Kitsana
On 12/15/2011 10:02 AM, per...@pluto.rain.com wrote:
 I suppose if someone wanted to track down the official way of
 solving this problem, they could look into how Windows handles it.

To my knowledge, Windows (XP, at least; probably others) labels the boot
filesystem on install, and just probes all disks every boot for a
filesystem with the given label. This is why you can move a Windows disk
around with relative impunity (as long as the controller drivers are
installed); but simply copying all those files to another filesystem
(a-la dump/restore on BSD) never results in a bootable OS, even if you
put them back in the same place.

This is also why booting with two attached clones of the same Windows
system disk is so fun.

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Enabling FTP and Telnet access for root and users

2011-12-15 Thread Daniel Lewis
How do I enable Telnet and ftp access for root and users?
 I turned on ftp and telnet in inetd but when at telenet or ftp prompt
access is denied.

Im using free bsd 8.2



Thanks,
Daniel lewis
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


df with ZFS vs. zpool list

2011-12-15 Thread Frank Lanitz
Hi folks,

I'm a bit confused about a thing. I did create a zpool using

zpool create storage ada1 ada2 ada3

Each of SATA-drives is about 80G in size. When using df -h I'm only
receiving

storage 145G42k 145G0%  /storage

where I expected something like 220GB (due to the ²-issue). However,

freebsd-test# zpool list
NAME  SIZE  ALLOC   FREECAP  DEDUP  HEALTH  ALTROOT
storage   222G  9.10M   222G 0%  1.00x  ONLINE  -

is giving the expcted output.

Can somebody clear the fog a bit ;)

Cheers,
Frank

P.S. It's a 9.0RC3
P.P.S.
freebsd-test# zpool status

pool: storage
state: ONLINE
scan: resilvered 8.50K in 0h0m with 0 errors on Wed Dec 14 17:07:38 2011
config:

NAMESTATE READ WRITE CKSUM
storage ONLINE   0 0 0
  raidz1-0  ONLINE   0 0 0
ada1ONLINE   0 0 0
ada2ONLINE   0 0 0
ada3ONLINE   0 0 0

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: df with ZFS vs. zpool list

2011-12-15 Thread Andreas Rudisch
On Thu, 15 Dec 2011 14:20:05 +0100
Frank Lanitz fr...@frank.uvena.de wrote:

 I'm a bit confused about a thing. I did create a zpool using
 zpool create storage ada1 ada2 ada3

 storage   145G42k 145G0%  /storage

 freebsd-test# zpool list
 NAME  SIZE  ALLOC   FREECAP  DEDUP  HEALTH  ALTROOT
 storage   222G  9.10M   222G 0%  1.00x  ONLINE  -

 P.P.S.
 freebsd-test# zpool status
   NAMESTATE READ WRITE CKSUM
   storage ONLINE   0 0 0

 raidz1-0  ONLINE   0 0 0
  ^^
   ada1ONLINE   0 0 0
   ada2ONLINE   0 0 0
   ada3ONLINE   0 0 0

Hi,

everything look fine. The pool consists of 3 80GB hds, on them you
created a RAIDZ1 filesystem. In your case a third of the pool is used
for parity information.

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgpyyvzAdajXh.pgp
Description: PGP signature


Re: Enabling FTP and Telnet access for root and users

2011-12-15 Thread Daniel Bye
On Thu, Dec 15, 2011 at 06:26:09AM -0600, Daniel Lewis wrote:
 How do I enable Telnet and ftp access for root and users?
  I turned on ftp and telnet in inetd but when at telenet or ftp prompt
 access is denied.

Can we see the error message? Are you sure inetd is running? Using the right
username/password combination?

In all honesty, you're better off enabling sshd instead, which encrypts your
communication, and offers numerous other security enhancements over plain
telnet and ftp.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgp4YL4cuTyVV.pgp
Description: PGP signature


Re: Enabling FTP and Telnet access for root and users

2011-12-15 Thread Reid Linnemann
On Thu, Dec 15, 2011 at 6:26 AM, Daniel Lewis
innervisionnetw...@gmail.com wrote:
 How do I enable Telnet and ftp access for root and users?
  I turned on ftp and telnet in inetd but when at telenet or ftp prompt
 access is denied.

 Im using free bsd 8.2



 Thanks,
 Daniel lewis
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Disclaimer:
Why in God's name would you want to enable root access through
insecure means such as telnet and ftp? Do you have a specific
requirement for these two protocols? For many years now ssh/sftp/scp
have been able to securely provide analogous services, and I would
recommend you take advantage of them before opening yourself up to the
woes of root access on ftp and telnet.

That being said,

Are you not able to authenticate any users or just root?

Are your ftpd and telnetd services being wrapped by inetd? Can you
show inetd.conf?

/etc/ftpusers contains a list of usernames that will be denied access
through ftp, root and its alias toor are both in there by default
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: df with ZFS vs. zpool list

2011-12-15 Thread Frank Lanitz
Am 15.12.2011 14:39, schrieb Andreas Rudisch:
 On Thu, 15 Dec 2011 14:20:05 +0100
 Frank Lanitz fr...@frank.uvena.de wrote:
 
 I'm a bit confused about a thing. I did create a zpool using
 zpool create storage ada1 ada2 ada3
 
 storage  145G42k 145G0%  /storage
 
 freebsd-test# zpool list
 NAME  SIZE  ALLOC   FREECAP  DEDUP  HEALTH  ALTROOT
 storage   222G  9.10M   222G 0%  1.00x  ONLINE  -
 
 P.P.S.
 freebsd-test# zpool status
  NAMESTATE READ WRITE CKSUM
  storage ONLINE   0 0 0
 
raidz1-0  ONLINE   0 0 0
   ^^
  ada1ONLINE   0 0 0
  ada2ONLINE   0 0 0
  ada3ONLINE   0 0 0
 
 everything look fine. The pool consists of 3 80GB hds, on them you
 created a RAIDZ1 filesystem. In your case a third of the pool is used
 for parity information.

Seems to make sense. Thanks for pointing that out.

Cheers,
Frank

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Enabling FTP and Telnet access for root and users

2011-12-15 Thread Reid Linnemann
On Thu, Dec 15, 2011 at 8:35 AM, Reid Linnemann lr...@cs.okstate.edu wrote:
 On Thu, Dec 15, 2011 at 6:26 AM, Daniel Lewis
 innervisionnetw...@gmail.com wrote:
 How do I enable Telnet and ftp access for root and users?
  I turned on ftp and telnet in inetd but when at telenet or ftp prompt
 access is denied.

 Im using free bsd 8.2



 Thanks,
 Daniel lewis
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

 Disclaimer:
 Why in God's name would you want to enable root access through
 insecure means such as telnet and ftp? Do you have a specific
 requirement for these two protocols? For many years now ssh/sftp/scp
 have been able to securely provide analogous services, and I would
 recommend you take advantage of them before opening yourself up to the
 woes of root access on ftp and telnet.

 That being said,

 Are you not able to authenticate any users or just root?

 Are your ftpd and telnetd services being wrapped by inetd? Can you
 show inetd.conf?

 /etc/ftpusers contains a list of usernames that will be denied access
 through ftp, root and its alias toor are both in there by default

Also, telnetd will never authenticate root unless your ttyp* terminals
are set secure in /etc/ttys, which is also not recommended.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: I am FreeBSD user.

2011-12-15 Thread Peter Vereshagin
Hello.

2011/12/14 16:11:27 + Chris Whitehouse cwhi...@onetel.com = To 
freebsd-questions@freebsd.org :
CW  ssuuddoo --VV | --hh | --ll | --LL | --vv | --kk | --KK | --ss | [ --HH
CW  properly as bold.  On an ancient teletype that would have been done by
CW  retyping the same character on top of the first one, which is ultimately
CW  where all those doubled characters come from.

CW I know it's trivial but I sent a PR (163149) with a patch (of sorts).

I find that kernel log messages about killed processes are doubling the
characters just like that (on an SMP machine). Probably thay are getting killed
simultaneously and the kernel writes msg about that one-by-one character.

Should I file a PR on this? Have no idea how could I reproduce a situation. but
it's regularly sent from 'periodic daily' several kernel log messages collected
for a day.

--
Peter Vereshagin pe...@vereshagin.org (http://vereshagin.org) pgp: A0E26627 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: opening vim with a flag: ready to write?

2011-12-15 Thread Victor Sudakov
Gary Kline wrote:
   is the a way of starting off vim or gvim and be able to type into
   the editor _without_ first typing:
  
   a,i,o,O,I,A, or any other character?

I use all the time:
$ echo $SVN_EDITOR 
vim -c startinsert

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: I am FreeBSD user.

2011-12-15 Thread Matthew Seaman
On 15/12/2011 15:36, Peter Vereshagin wrote:
 I find that kernel log messages about killed processes are doubling the
 characters just like that (on an SMP machine). Probably thay are getting 
 killed
 simultaneously and the kernel writes msg about that one-by-one character.
 
 Should I file a PR on this? Have no idea how could I reproduce a situation. 
 but
 it's regularly sent from 'periodic daily' several kernel log messages 
 collected
 for a day.

What OS version? There was a similar problem experienced on multi-core
machines where some of the boot messages were getting interleaved like
that.  It was harmless, other than being aesthetically unpleasing -- I
believe it has been fixed in 8.2-RELEASE or later.

If you can demonstrate the problem on a recent version of the OS, and it
is definitely not the another instance of problem I describe above, then
yes, that's certainly worth an e-mail to freebsd-stable@... and possibly
a PR as well.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: I am FreeBSD user.

2011-12-15 Thread Peter Vereshagin
Hello.

2011/12/15 16:37:12 + Matthew Seaman m.sea...@infracaninophile.co.uk = 
To freebsd-questions@freebsd.org :
MS On 15/12/2011 15:36, Peter Vereshagin wrote:
MS  I find that kernel log messages about killed processes are doubling the
MS  characters just like that (on an SMP machine). Probably thay are getting 
killed
MS  simultaneously and the kernel writes msg about that one-by-one character.
MS  
MS  Should I file a PR on this? Have no idea how could I reproduce a 
situation. but
MS  it's regularly sent from 'periodic daily' several kernel log messages 
collected
MS  for a day.
MS 
MS What OS version? There was a similar problem experienced on multi-core
MS machines where some of the boot messages were getting interleaved like
MS that.  It was harmless, other than being aesthetically unpleasing -- I
MS believe it has been fixed in 8.2-RELEASE or later.

~ 7.2-release-p3

It was suspicious to me as it's like a someone is trying to turn logs into a 
mess therefore hiding an intrusion traces.

MS If you can demonstrate the problem on a recent version of the OS, and it

I can't at least because I have no SMP machine accesible for such a trial by 
hand. ;-)

MS is definitely not the another instance of problem I describe above, then
MS yes, that's certainly worth an e-mail to freebsd-stable@... and possibly
MS a PR as well.

ok, I see it's a known issue, just wanted to assure.

--
Peter Vereshagin pe...@vereshagin.org (http://vereshagin.org) pgp: A0E26627 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: df with ZFS vs. zpool list

2011-12-15 Thread John Levine
Each of SATA-drives is about 80G in size. When using df -h I'm only
receiving

storage145G42k 145G0%  /storage

where I expected something like 220GB (due to the �-issue). However,

It's raidz.  The third disk is parity for the first two.

   NAMESTATE READ WRITE CKSUM
   storage ONLINE   0 0 0
 raidz1-0  ONLINE   0 0 0
   ada1ONLINE   0 0 0
   ada2ONLINE   0 0 0
   ada3ONLINE   0 0 0

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


PF/ALTQ - Stable TSC?

2011-12-15 Thread APseudoUtopia
Hello,
I'm setting up pf with altq support in my kernel on freebsd 9.0-Stable
(soon to switch to the -RELEASE once it's available).
The system is a quad-core Xeon E31220, running amd64.
I've done a bit of googling and found various results. I know the
freebsd handbook says ALTQ_NOPCC is required on SMP systems. My
kern.timecounter.smp_tsc=1, which says the TSC is safe to use in SMP
mode. Is it still required to use ALTQ_NOPCC on _ALL_ smp systems?
Basically I'm just seeing very different answers with my own research,
which is why I'm posting to this list.

Thank you!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Implementation details of altq hfsc scheduler in pf 4.5

2011-12-15 Thread Maxim Khitrov
On Tue, Dec 13, 2011 at 8:15 AM, RW rwmailli...@googlemail.com wrote:
 On Mon, 12 Dec 2011 21:51:39 -0500
 Maxim Khitrov wrote:

 I've read everything I could find on the topic of configuring hfsc
 altq in pf (4.5, FreeBSD 9), but I still have no clear idea of how it
 is actually implemented. I even started looking through the source
 code, but that might take a while. My main questions are:

 1. Difference between 'realtime' and 'linkshare'?

 It's about latency, realtime has priority over non-realtime.

I sort of understand this, but I can't figure out how that would apply
to my example:

altq on $wan hfsc bandwidth 25Mb queue {one, two}
queue one bandwidth 70% hfsc(default, realtime 20%)
queue two bandwidth 30% hfsc(realtime 60%)

If realtime and linkshare priorities are reversed, what happens as
total bandwidth utilization approaches 100%?

 2. In service curve configuration (m1, d, m2), what is 'd' relative
 to?

 It looks like it's a leaky-bucket algorithm. It's not really relative
 to anything except for special cases like a traffic step-function.

Can you please clarify what you mean? I'm familiar with the leaky
bucket algorithm, but it still doesn't answer what triggers the switch
from m1 to m2 and whether it's a per-queue or per-connection setting.

 3. Are priorities actually used for anything?

 Priority determines which queue is serviced next when more than one is
 under its limit.

Understood, thanks.

- Max
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


problem with stoping process

2011-12-15 Thread Коньков Евгений
I am trying to stop process
/usr/local/etc/rc.d/radiusd top
Stopping radiusd.
Waiting for PIDS: 27618

top
27618 freeradius2  20  -20   333M   295M STOP0   4:42  0.00% radiusd

ps aux
freeradius 27618   0.0  7.4 341144 302528  ??  TLs Fri05AM   685:27.16 
/usr/local/sbin/radiusd

nothing is happen

Why process do not stop?

-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: opening vim with a flag: ready to write?

2011-12-15 Thread Gary Kline
On Thu, Dec 15, 2011 at 11:12:45PM +0700, Victor Sudakov wrote:
 Date: Thu, 15 Dec 2011 23:12:45 +0700
 From: Victor Sudakov v...@mpeks.tomsk.su
 To: freebsd-questions@freebsd.org
 Subject: Re: opening vim with a flag: ready to write?
 
 Gary Kline wrote:
is the a way of starting off vim or gvim and be able to type into
the editor _without_ first typing:
   
a,i,o,O,I,A, or any other character?
 
 I use all the time:
 $ echo $SVN_EDITOR 
 vim -c startinsert
 
 -- 
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
 sip:suda...@sibptus.tomsk.ru
 
 this works for gvim too, although gvim takes awhile to fork.  
 I'll try kate in vi-mode.

 thanks much.

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.98a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
  server ethic 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD 8.2 + Ironlake revisted

2011-12-15 Thread doug
I have a laptop with Xorg 7.5 and FreeBSD 8.2 both updated as of a few weeks 
ago. The laptop has an Intel Ironlake card that Xorg 7.5 apparently recognizes 
as such creating, what I assume is a correct, modline for it. However the 
default install selects the vesa drive which will only support a screen 
resolution of 1024x768. My question is: can a higher resolution be suported in 
8.2? I assume there is a technical or implementation reason why vesa only does 
1024x768 rather than configuring to the highest resolution the card supports.


Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: problem with stoping process

2011-12-15 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Thu Dec 15 13:04:04 2011
 Date: Thu, 15 Dec 2011 21:00:50 +0200
 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= kes-...@yandex.ru
 To: freebsd-questions@freebsd.org
 Subject: problem with stoping process

 I am trying to stop process
 /usr/local/etc/rc.d/radiusd stop
 Stopping radiusd.
 Waiting for PIDS: 27618

 top
 27618 freeradius2  20  -20   333M   295M STOP0   4:42  0.00% radiusd

 ps aux
 freeradius 27618   0.0  7.4 341144 302528  ??  TLs Fri05AM   685:27.16 
 /usr/local/sbin/radiusd

 nothing is happen

The process is shown as being in the STOPPED state.

What did you _expect_ to happen.


 Why process do not stop?

It *did* stop.



--pBG145MU033027.1323997445/mail.r-bonomi.com--

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PF/ALTQ - Stable TSC?

2011-12-15 Thread Michael Powell
APseudoUtopia wrote:

 Hello,
 I'm setting up pf with altq support in my kernel on freebsd 9.0-Stable
 (soon to switch to the -RELEASE once it's available).
 The system is a quad-core Xeon E31220, running amd64.
 I've done a bit of googling and found various results. I know the
 freebsd handbook says ALTQ_NOPCC is required on SMP systems. My
 kern.timecounter.smp_tsc=1, which says the TSC is safe to use in SMP
 mode. Is it still required to use ALTQ_NOPCC on _ALL_ smp systems?
 Basically I'm just seeing very different answers with my own research,
 which is why I'm posting to this list.
 

In the /usr/src/sys/conf/NOTES on an 8.2 box it has this to say:

ALTQ requires a stable TSC so if yours is broken or changes with CPU 
throttling then you must also have the ALTQ_NOPCC option.

I take this to mean that if your TSC is absolutely rock solid and does not 
vary or adjust when CPU throttling kicks in you may very well get away with 
not having it. 

My take on this is it probably doesn't hurt to leave it in, as it would be a 
safety net in place for a just in case scenario in which case it would 
enhance stability. Cheap insurance.

I suspect the Handbook line you were referring to might date back to the 5.x 
days, with the quote above being recent. A lot of work in the three 
timecounters available went as water under the bridge some time ago.

-Mike



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: opening vim with a flag: ready to write?

2011-12-15 Thread Karl Vogel
 On Wed, 14 Dec 2011 16:42:31 -0800
 Gary Kline kl...@thought.org may have said:

G is the a way of starting off vim or gvim and be able to type into the
G editor _without_ first typing: a,i,o,O,I,A, or any other character?

   The command
   vim --cmd start /some/file
   works for new files, and puts you into insert mode on the first line of
   an existing file.

   If you want to have vim start by appending to an existing file, use
   something like
   echo  /some/file
   vim + --cmd start /some/file

   to append a line first, or your session will start in insert mode with
   the cursor at the beginning of the last line.

-- 
Karl Vogel  I don't speak for the USAF or my company

Leighton Meester beats her mom in court
  --Dec 2011 headline that really could have been phrased better
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org