patch: sysctl variables to tweak the fan behaviour on thinkpads

2011-04-16 Thread sr
With the warming weather, I won't be able to keep running my T60 with
the fan unplugged for much longer. The following diffs stop the fan
(when plugged) from tormenting me every other minute, by allowing me
to set the temperature thresholds for passive/active cooling.

This is my first patch and the first time I dived into the kernel;
clue sticks/suggestions are more than welcome!

$ sysctl machdep
machdep.console_device=ttyC0
machdep.bios.diskinfo.128=bootdev = 0xa0010204, cylinders = 1024,
heads = 16, sectors = 63
machdep.bios.cksumlen=1
machdep.allowaperture=2
machdep.cpuvendor=GenuineIntel
machdep.cpuid=1782
machdep.cpufeature=-1074004993
machdep.kbdreset=0
machdep.xcrypt=0
machdep.lidsuspend=0
machdep.thinkpadfan_ctl=1
machdep.thinkpadfan_passive_trigger=45
machdep.thinkpadfan_active_trigger=70

Index: acpithinkpad.c
===
RCS file: /cvs/src/sys/dev/acpi/acpithinkpad.c,v
retrieving revision 1.25
diff -u -r1.25 acpithinkpad.c
--- acpithinkpad.c  2 Jan 2011 04:56:57 -   1.25
+++ acpithinkpad.c  16 Apr 2011 04:38:27 -
@@ -74,13 +74,17 @@
 #define THINKPAD_NSENSORS 9
 #define THINKPAD_NTEMPSENSORS 8

+#define THINKPAD_ECOFFSET_FANCTL   0x2f
 #define THINKPAD_ECOFFSET_FANLO0x84
 #define THINKPAD_ECOFFSET_FANHI0x85

+#define THINKPAD_FAN_STOP  0x00
+#define THINKPAD_FAN_AUTO  0x80
+
 struct acpithinkpad_softc {
struct devicesc_dev;

-   struct acpiec_softc *sc_ec;
+   struct acpiec_softc *sc_ec;
struct acpi_softc   *sc_acpi;
struct aml_node *sc_devnode;

@@ -106,6 +110,8 @@
 voidthinkpad_sensor_attach(struct acpithinkpad_softc *sc);
 voidthinkpad_sensor_refresh(void *);

+void   thinkpad_update_fan_state(struct acpithinkpad_softc *, int);
+
 struct cfattach acpithinkpad_ca = {
sizeof(struct acpithinkpad_softc), thinkpad_match, thinkpad_attach
 };
@@ -116,6 +122,9 @@

 const char *acpithinkpad_hids[] = { ACPI_DEV_THINKPAD, 0 };

+u_int8_t   tpfan_state;
+inttpfan_ctl, tpfan_passive_temp, tpfan_active_temp;
+
 int
 thinkpad_match(struct device *parent, void *match, void *aux)
 {
@@ -148,7 +157,7 @@
/* Add temperature probes */
strlcpy(sc-sc_sensdev.xname, DEVNAME(sc),
sizeof(sc-sc_sensdev.xname));
-   for (i=0; iTHINKPAD_NTEMPSENSORS; i++) {
+   for (i = 0; i  THINKPAD_NTEMPSENSORS; i++) {
sc-sc_sens[i].type = SENSOR_TEMP;
sensor_attach(sc-sc_sensdev, sc-sc_sens[i]);
}
@@ -165,23 +174,50 @@
 {
struct acpithinkpad_softc *sc = arg;
u_int8_t lo, hi, i;
+   int max_tmp;
int64_t tmp;
char sname[5];

/* Refresh sensor readings */
-   for (i=0; iTHINKPAD_NTEMPSENSORS; i++) {
+   max_tmp = 0;
+   for (i = 0; i  THINKPAD_NTEMPSENSORS; i++) {
snprintf(sname, sizeof(sname), TMP%d, i);
aml_evalinteger(sc-sc_acpi, sc-sc_ec-sc_devnode,
sname, 0, 0, tmp);
sc-sc_sens[i].value = (tmp * 100) + 27315;
if (tmp  127 || tmp  -127)
sc-sc_sens[i].flags = SENSOR_FINVALID;
+   else if (tmp  max_tmp)
+   max_tmp = tmp;
}

/* Read fan RPM */
acpiec_read(sc-sc_ec, THINKPAD_ECOFFSET_FANLO, 1, lo);
acpiec_read(sc-sc_ec, THINKPAD_ECOFFSET_FANHI, 1, hi);
sc-sc_sens[i].value = ((hi  8L) + lo);
+
+   /* update fan state */
+   if (tpfan_ctl || (!tpfan_ctl  tpfan_state != THINKPAD_FAN_AUTO))
+   thinkpad_update_fan_state(sc, max_tmp);
+}
+
+void
+thinkpad_update_fan_state(struct acpithinkpad_softc *sc, int temp)
+{
+   u_int8_t new_state;
+
+   if (temp = tpfan_active_temp || !tpfan_ctl)
+   new_state = THINKPAD_FAN_AUTO;
+   else if (temp = tpfan_passive_temp  tpfan_ctl)
+   new_state = THINKPAD_FAN_STOP;
+   else
+   return;
+
+   if (new_state != tpfan_state) {
+   tpfan_state = new_state;
+   acpiec_write(sc-sc_ec, THINKPAD_ECOFFSET_FANCTL, 1,
+   new_state);
+   }
 }

 void
@@ -202,6 +238,10 @@
/* Run thinkpad_hotkey on button presses */
aml_register_notify(sc-sc_devnode, aa-aaa_dev,
thinkpad_hotkey, sc, ACPIDEV_POLL);
+
+   /* initial fan state */
+   tpfan_state = THINKPAD_FAN_AUTO;
+   tpfan_ctl = tpfan_passive_temp = tpfan_active_temp = 0;
 }

 int
@@ -236,8 +276,7 @@
bzero(arg, sizeof(arg));
arg.type = AML_OBJTYPE_INTEGER;
arg.v_integer = 1;
-   if (aml_evalname(sc-sc_acpi, sc-sc_devnode, MHKC,
-   1, arg, NULL)) {
+   if (aml_evalname(sc-sc_acpi, sc-sc_devnode, MHKC, 1, arg, NULL)) {
printf(%s: couldn't enable hotkeys\n, DEVNAME(sc));
return (1);
}

Invitation to attend SETIT 2011

2011-04-16 Thread Med Salim
Appologies if you received multiple copies.
Please forward this message to any potential colleagues in the areas of
interest.


We would like to invite you to join us for the 6th international conference
named Sciences of Electronics, Technologies of Information and
Telecommunications which will be held in Sousse-Tunisia from 12th to 15th May
2011.

This Conference is technically sponsored by IEEE and the SAI. In this sixth
Edition, more than 720 papers have been proposed among which 300 have been
retained for publication. The papers' authors are from more than 40
nationalities.

The SETIT conference is an essential forum for sharing knowledge about the
latest progress and advances in information and telecommunication technologies
through papers, and has an excellent track record for fostering synergism
between research teams that are working in the fields related to the
conference topics.

The rich assortment of tutorials, presentation sessions, and receptions will
allow you to gain in-depth knowledge of fundamental principles and the latest
trends in the sciences of electronics, technologies of information and
telecommunications.

With its many sessions, the Conference is an excellent opportunity to renew
old friendships and network with new contacts. You and your accompanists will
also enjoy the vibrant culture and many points of interest in our beautiful
and hospitable country Tunisia, so make your plans now to join us for this
exciting event.

The organizing committee of the SETIT conference cordially invites you to join
this event.

In this conference; 200 participants will benefit from a financial support.
This Financial support, of amount 250 euro, will be available to help
participants from developing or emerging countries as well as young
researchers to attend SETIT2011.

The criteria used for the allocation of the financial support are:
 Country of residence (developing country, country with poor currency)
 Occupational status.

The financial support form is available on the web site
http://www.setit.rnu.tn/FinancialSupport.dot. It should be filled in in
details and sent by e-mail to the SETIT organization committee
financialsupport.se...@gmail.com who examine on a case by case basis all
requests and provide a response over 1 week.

Our receipt for your request will be sent within 48 hours.

Please note that financial support requests must be sent before 15th, April
2011.

Online registration can be found at:
http://www.setit.rnu.tn/?main=1pg=registration .

After registration an official invitation letter will be send to you.


As official carrier sponsor for the 6th International Conference SETIT 2011,
TUNIS AIR will offer to all participants and their accompanying people
attending this Conference the following special offer: 50% discount on the
excursion charge to Tunisia on Tunis air in economic class. To benefit from
this very special offer, contact the Tunis air Representation Offices in your
country


See you in Sousse,
Mohamed Salim BOUHLEL
General Co-Chair, SETIT 2011
Head of Research Unit: Sciences  Technologies of Image and Telecommunications
(Sfax University)
GSM +216 20 20 00 05
  Find us on Facbook
  Find us on Twitter

=
This email is sent out to all those on the SETIT database. If you want to be
removed from this database, please send an email to
unsubscribe.se...@gmail.com with subject Unsubscribe
=



Re: not boot panic: trap type 6, code=2, pc=d032a644c

2011-04-16 Thread Oleksii Zhmyrov

16.04.2011 5:46, Kenneth R Westerback P=P0P?P8QP0P2(P;P0):

On Sat, Apr 16, 2011 at 12:25:12AM +0300, Oleksii Zhmyrov wrote:

I'm trying 4.9 snapshot from April  13 iso inside a VM with vmware
ws 7.0 in windows 7.

initially the system appears to boot fine but then it show the
following message:



bha3: model  BT-958, firmware 5.07B
bha3: sync, parity
scsibus1 at bha3: 8 targets, initiator 7
uvm_fault(0xd07e7024, 0x0, 0m 3) -  e
fatal page fault (6) in supervisor mode
trap type 6 code eie d03a644c cs 8 eflags 10286 cr2 18 cpl 50
panic: trap type 6, code=2, pc=d032a644c

The operating system has halted.
Please press any key to reboot.


I have run older isos of 4.9 snapshot (from february and january)
and these run fine.



I use 4.9-current on VMware too and this error appeared after some changes
in scsi support on April 5, 2011.

--
Oleksii Zhmyrov
National Technical University of Ukraine Kyiv Polytechnic Institute, 
Institute of Physics and Technology
Tel: +38 (063) 496 2695


Just committed a fix for an uninitialize variable. Please let me know if
this was the problem! Appended below for the impatient.



This diff fixed the problem. Thanks!


 Ken

Index: bha.c
===
RCS file: /cvs/src/sys/dev/ic/bha.c,v
retrieving revision 1.27
diff -u -p -r1.27 bha.c
--- bha.c   3 Apr 2011 12:42:36 -   1.27
+++ bha.c   16 Apr 2011 02:43:15 -
@@ -467,7 +467,7 @@ bha_ccb_free(xsc, xccb)
void *xsc, *xccb;
  {
struct bha_softc *sc = xsc;
-   struct bha_ccb *ccb;
+   struct bha_ccb *ccb = xccb;

bha_reset_ccb(sc, ccb);





--
Oleksii Zhmyrov
National Technical University of Ukraine Kyiv Polytechnic Institute, 
Institute of Physics and Technology
Tel: +38 (063) 496 2695



Re: mount nullfs

2011-04-16 Thread Dan Brosemer
On Sat, Apr 16, 2011 at 01:08:52AM +0200, Paul de Weerd wrote:
 On Sat, Apr 16, 2011 at 01:59:12AM +0300, Claudiu Pruna wrote:
 | Hi list,
 | 
 | I was wondering, in OpenBSD is there an equivalent to FreeBSD's
 | mount_nullfs or to Linux's mount -o bind ?
 
 Sure; it's in the attic .. don't wake the spiders!
 
 http://www.openbsd.org/cgi-bin/cvsweb/src/sys/miscfs/nullfs/Attic/

I use a local NFS mount when I want to accomplish this.  It drags in a lot
of complexity, but it has worked for me for years.

-Dan



Re: mount nullfs

2011-04-16 Thread Tomas Bodzar
The question is if implementations still sucks as before years

http://undeadly.org/cgi?action=articlesid=20050527155028

On Sat, Apr 16, 2011 at 3:59 PM, Dan Brosemer o...@svartalfheim.net wrote:
 On Sat, Apr 16, 2011 at 01:08:52AM +0200, Paul de Weerd wrote:
 On Sat, Apr 16, 2011 at 01:59:12AM +0300, Claudiu Pruna wrote:
 | B  B  Hi list,
 |
 | B  B  I was wondering, in OpenBSD is there an equivalent to FreeBSD's
 | mount_nullfs or to Linux's mount -o bind ?

 Sure; it's in the attic .. don't wake the spiders!

 http://www.openbsd.org/cgi-bin/cvsweb/src/sys/miscfs/nullfs/Attic/

 I use a local NFS mount when I want to accomplish this. B It drags in a lot
 of complexity, but it has worked for me for years.

 -Dan



Re: mount nullfs

2011-04-16 Thread Daniel Brosemer
It means mount_nullfs doesn't exist anymore (it's in the attic) and a 
local NFS mount works.  I said nothing about performance.  I haven't 
tested that and don't really care.

Back when nullfs existed, it had serious problems (mtime not updating, 
etc).  I'm sure that's why it went away.

I can't call a local NFS mount a perfect solution (there's a *lot* of 
complexity added there) but it does work at least for my purposes and 
satisfies everything I used to use null mounts for.

-Dan

On 4/16/2011 12:18 PM, Robert Halberg wrote:
 Does this mean that the performance of a local NFS mount is actually 
 better than that of mount_nullfs?



 On Sat, Apr 16, 2011 at 9:50 AM, Tomas Bodzar tomas.bod...@gmail.com 
 mailto:tomas.bod...@gmail.com wrote:

 The question is if implementations still sucks as before years

 http://undeadly.org/cgi?action=articlesid=20050527155028
 http://undeadly.org/cgi?action=articlesid=20050527155028

 On Sat, Apr 16, 2011 at 3:59 PM, Dan Brosemer
 o...@svartalfheim.net mailto:o...@svartalfheim.net wrote:
  On Sat, Apr 16, 2011 at 01:08:52AM +0200, Paul de Weerd wrote:
  On Sat, Apr 16, 2011 at 01:59:12AM +0300, Claudiu Pruna wrote:
  | B  B  Hi list,
  |
  | B  B  I was wondering, in OpenBSD is there an equivalent to
 FreeBSD's
  | mount_nullfs or to Linux's mount -o bind ?
 
  Sure; it's in the attic .. don't wake the spiders!
 
  http://www.openbsd.org/cgi-bin/cvsweb/src/sys/miscfs/nullfs/Attic/
 
  I use a local NFS mount when I want to accomplish this. B It
 drags in a lot
  of complexity, but it has worked for me for years.
 
  -Dan




 -- 
 Young man, in mathematics you don't understand things, you just get 
 used to them. - John von Neumann



Re: mount nullfs

2011-04-16 Thread Robert Halberg
Does this mean that the performance of a local NFS mount is actually better
than that of mount_nullfs?



On Sat, Apr 16, 2011 at 9:50 AM, Tomas Bodzar tomas.bod...@gmail.comwrote:

 The question is if implementations still sucks as before years

 http://undeadly.org/cgi?action=articlesid=20050527155028

 On Sat, Apr 16, 2011 at 3:59 PM, Dan Brosemer o...@svartalfheim.net
 wrote:
  On Sat, Apr 16, 2011 at 01:08:52AM +0200, Paul de Weerd wrote:
  On Sat, Apr 16, 2011 at 01:59:12AM +0300, Claudiu Pruna wrote:
  | B  B  Hi list,
  |
  | B  B  I was wondering, in OpenBSD is there an equivalent to FreeBSD's
  | mount_nullfs or to Linux's mount -o bind ?
 
  Sure; it's in the attic .. don't wake the spiders!
 
  http://www.openbsd.org/cgi-bin/cvsweb/src/sys/miscfs/nullfs/Attic/
 
  I use a local NFS mount when I want to accomplish this. B It drags in a
 lot
  of complexity, but it has worked for me for years.
 
  -Dan




-- 
Young man, in mathematics you don't understand things, you just get used to
them. - John von Neumann



Re: Is VPN initiation by traffic possible?

2011-04-16 Thread nemir nemirius
Hi Reyk,


 Short answer: Yes, it works.


Fantastic! Thanks for the response!!




 See also:
 http://www.allard.nu/openbsd/maillist/archive/200608/1331.html

I have read this now...



I do still have to read up on iked,  so I can get my head around that

info better, though.

 A possible, but untested, ipsec.conf configuration could be:

 ---snip---
 flow esp from 192.168.10.0/24 to 192.168.20.0/24 peer 10.0.0.2 type require
 ike passive esp from 192.168.10.0/24 to 192.168.20.0/24 peer 10.0.0.2
 ---snap--


I am still using isakmpd.conf  isakmpd.policy

do you have a possible untested sample config for them..?  All the

threads I've seen on this just say isakmpd.conf is possible but more

complicated and don't go any further.  :(


I guess I've read so much stuff now I probably could covert over, but
that would alter the change impact, requiring a lot more effort.


Thanks for the awesome responses!

Nemir



pf rules

2011-04-16 Thread gdrm
Hi, i don't know more about pf, i will want block this IP black list and i
want block ssh and telnet out from my lan...this is the right mode?
Can I put this IP black list in  a file and use it whit pf tables?
Thanks vvm!

block in on re0 proto {tcp udp } from {  x.219.37.16, 209.160.28.116 \
, x.10.53.222,  x.192.9.129,  x.106.62.11, x.235.55.98, 212.174.61.80,
x.192.25.224 \
, x.102.73.106, x.87.149.250, x.226.108.135, x.10.53.222, x.214.225.114,
x.98.96.154, x.191.74.171 }  to any

table good_ips { 192.168.1.0/24 }
blocked_ports={ ssh, 8022, telnet }
block out on re0 proto tcp from any to !good_ips port $blocked_ports










 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
autenticato? GRATIS solo con Email.it http://www.email.it/f

 Sponsor:
 Torre Pedrera di Rimini,la meta ideale per le Vostre vacanze all'insegna del
relax e del divertimento.Scoprite le nostre offerte per PASQUA e per l'ESTATE
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid395d-4



Des ficheirs e-mail Belges pour vos campagnes publicitaires

2011-04-16 Thread Fichiers-email
  Si vous ne pouvez visualiser ce message, rendez-vous sur
notre site

  Bonjour,Il y a bien
longtemps que nous n'avons pas pris contact avec vous !En cette piriode
d'avant Pbques, vous avez trhs certainement besoin de nos services pour vos
campagnes publicitaires, car l'e-mailing est bien la solution la plus
iconomique, et de loin ! Nous voulions vous avertir de l'extension de notre
garantie exclusive de remplacement ou remboursement des invalides et NPAI.
Disormais :100 achetis = 100 dilivris

Et pour que vous puissiez tester nos fichiers, profitez d'une
offre exceptionnelle juqu'au 20 avril 2011Fichier de Partuciliers Belges

Un fichier exceptionnel,de trhs grande qualiti de 3
adresses e-mail de Particuliers Belges, BtoC, opt-in.

Ce fichier est au jour au 25 mars 2011 et binificie ainsi
d'une dilivrabilti maximale.

Au prix exceptionnel de 189.00 euro; TTC au lieu de 319.00
euro; = - 40 %






   etA bienttt !






Til : 04 89 02 01 95Visiter notre site : ICI


  Si vous souhaitez ne pllus recevoir nos informations ou celles
de nos partenaires :



Re: laptop questions/comments

2011-04-16 Thread Brett

Date: Sat, 16 Apr 2011 11:03:15 +1200
From: Paul M l...@no-tek.com
To: OpenBSD general usage list misc@openbsd.org
Subject: laptop questions/comments
Message-ID: 04d87a5828d374d828bc3e1b091de...@no-tek.com

Hi all,

It's time for a new OpenBSD laptop, and I have a couple of questions.

Note that I dont want to spend money on performance I dont need, but I
do want to spend money on a decent quality machine.

I just bought a HP G42-303DX (AMD Turion II processor):

http://www.bestbuy.com/site/HP+-+Laptop+/+AMD+Turion%26%23153%3B+II+Processor+/+14%22+Display+/+3GB+Memory+-+Biscotti/1623912.p?id=1218273846151skuId=1623912

The battery life is terrible, but OpenBSD 4.8 i386 runs fine on it (I 
haven't tried to burn disks or use webcam). So far it seems very solid 
and a bargain. Audio also works out of the box.
I think HP was making a similar machine with 15.6 inch screen but I'm 
not sure if they are still available. frys.com was advertising them in 
print ads but then the website said out of stock.

Brett.



[Jeram Monitor] Take 2 minutes for Employee Productivity

2011-04-16 Thread Upasana Tewari
Good morning.

I am Upasana, Head of Product Innovation at Ideastage. We are excited to
share our new product, Jeram Monitor, for Employee Productivity Tracking
and Auditing.

IDC report 2010: Today's employee is wasting 8.3 hours per week, which
makes 100 people company loose USD 1/2 million per annum.

Problem:

Today's world gives us the freedom to work from anywhere. Work from home,
mobile task force are future for working as it allows flexibility and
saves time-cost. However  it also leads to employees abusing this
freedom, waste time  resources. 

Solution:

Our Jeram Monitor addresses this problem. We are conducting a survey to
understand your need better. All information gathered will be kept
private and confidential. 

http://www.surveymonkey.com/s/jerammonitor

Please take this 2 minutes survey to help us. 

We look forward to your feedback.

Warm regards,

Upasana

Head of Marketing

Idea Stage Venture Sdn. Bhd.

Office:M-3-19, Plaza Damas, Sri Hartamas, 50480 Kuala Lumpur, West
Malaysia

Tel: 601-227-979-1117
Fax: 603-6201-1492

Disclaimer:

This message is intended only for the use of the person to whom it is
expressly addressed and may contain information that is confidential and
legally privileged. If you are not the intended recipient, you are hereby
notified that any use, reliance on, reference to, review, disclosure or
copying of the message and the information it contains for any purpose is
prohibited. If you have received this message in error, please notify the
sender by reply e-mail of the misdelivery and delete all its contents.
Opinions, conclusions and other information in this message that do not
related to the official business of Idea Stage Venture shall be
understood as neither given no endorsed by it.



Re: pf ftp-proxy forward AND reverse (Help?)

2011-04-16 Thread Bill Allaire

On 04/11/2011 06:31 PM, Steven R. Gerber wrote:

Hi folks.
I cannot get reverse? ftp to work from my wireless to my LAN.
I seem to have no trouble going from the LAN to the internet.
Any thoughts?




Thanks,
Steven
*
pf.conf:

# filter rules and anchor for ftp-proxy(8)
anchor ftp-proxy/*
pass in on $wireless_if inet proto tcp to ($wireless_if) port 21
pass out on $int_if inet proto tcp to $ftp_server port 21 user proxy

# Translate outgoing ftp control connections to send them to localhost
# for proxying with ftp-proxy(8) running on port 8021.
#rdr on $int_if proto tcp from any to any port 21 -  127.0.0.1 port 8021
anchor ftp-proxy/*
#pass in quick proto tcp to port ftp rdr-to 127.0.0.1 port 8021
pass in quick on $int_if proto tcp to port 21 rdr-to 127.0.0.1 port 8021
*


I have the outgoing ftp-proxy listening on the default port.  I have the 
incoming ftp-proxy listening on a different port.  I also have only one 
anchor for ftp-proxy.


anchor ftp-proxy/*
pass in on $office_network proto tcp to port ftp rdr-to 127.0.0.1 port 8021
pass in log on $external_interface proto tcp from any to 
$external_interface port ftp flags S/SAFR modulate state (max-src-conn 
15, max-src-conn-rate 5/3, overload hmmm flush global) rdr-to 
127.0.0.1 port 8031





$ cat /etc/rc.conf.local
ntpd_flags=-s # enabled during install
#
# set these to NO to turn them off.  otherwise, they're used as flags
#named_flags=-d 3 # for normal use: 
named_flags=  # for normal use: 
#dhcpd_flags= # for normal use: 
# ISC dhcpd will be invokd via rc.local!!!
#
# set the following to YES to turn them on
pf=YES  # Packet filter / NAT

ftpproxy_flags=   # for normal use: 
ftpproxy_flags2=-R xxx.xxx.iii.2 -p 21 -b xxx.xxx.www.1   # for
normal use: 
#
# miscellaneous other flags
# only used if the appropriate server is marked YES above
pflogd_flags=   # add more flags, ie. -s 256
*
rc.local:

# Start ftp-proxy #2
if [ X${ftpproxy_flags2} != XNO ]; then
 echo -n ' ftp-proxy';   /usr/sbin/ftp-proxy ${ftpproxy_flags2}
fi
*




Re: Intel 10GbE SFP+ (82599) and vlan

2011-04-16 Thread Hrvoje Popovski

On 15.4.2011 12:49, Reyk Floeter wrote:

On Thu, Apr 14, 2011 at 04:37:31PM +, Stuart Henderson wrote:

01:20:38.556705 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has
10.3.3.2 tell 10.3.3.1


your config is OK, something is broken there. I guess this will make
it function but it's not a correct fix.



well, it works fine on the 82598 (heavily tested and used in
production here) but seems to be broken on the 82599.  it is either a
hardware bug on the 82599 or related to the fact that it uses slighlty
different advanced descriptors.  this should be a more accurate
workaround for now (until we're able to fix it on the 82599):

#if NVLAN  0
 if (hw-mac.type == ixgbe_mac_82598EB)
 ifp-if_capabilities |= IFCAP_VLAN_HWTAGGING;
#endif



hello,

here is tcpdump from directly connected ix interfaces on rtr1 and rtr2 
with applied patch, it's still the same


rtr1 - 10.4.4.1
# tcpdump -i ix1
tcpdump: listening on ix1, link-type EN10MB
22:04:57.558393 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.2 tell 10.4.4.1
22:04:58.565373 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.2 tell 10.4.4.1
22:04:59.575372 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.2 tell 10.4.4.1
22:05:00.585378 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.2 tell 10.4.4.1
22:05:01.595384 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.2 tell 10.4.4.1

22:05:09.367744 802.1Q vid 123 pri 0 arp who-has 10.4.4.1 tell 10.4.4.2
22:05:10.370152 802.1Q vid 123 pri 0 arp who-has 10.4.4.1 tell 10.4.4.2
22:05:11.380153 802.1Q vid 123 pri 0 arp who-has 10.4.4.1 tell 10.4.4.2
22:05:12.390167 802.1Q vid 123 pri 0 arp who-has 10.4.4.1 tell 10.4.4.2
22:05:13.400168 802.1Q vid 123 pri 0 arp who-has 10.4.4.1 tell 10.4.4.2


rtr2 - 10.4.4.2
# tcpdump -i ix1
tcpdump: listening on ix1, link-type EN10MB
22:04:57.557884 802.1Q vid 123 pri 0 arp who-has 10.4.4.2 tell 10.4.4.1
22:04:58.564864 802.1Q vid 123 pri 0 arp who-has 10.4.4.2 tell 10.4.4.1
22:04:59.574863 802.1Q vid 123 pri 0 arp who-has 10.4.4.2 tell 10.4.4.1
22:05:00.584868 802.1Q vid 123 pri 0 arp who-has 10.4.4.2 tell 10.4.4.1
22:05:01.594875 802.1Q vid 123 pri 0 arp who-has 10.4.4.2 tell 10.4.4.1
22:05:09.367257 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.1 tell 10.4.4.2
22:05:10.369665 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.1 tell 10.4.4.2
22:05:11.379665 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.1 tell 10.4.4.2
22:05:12.389679 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.1 tell 10.4.4.2
22:05:13.399681 802.1Q vid 0 pri 0 802.1Q vid 123 pri 0 arp who-has 
10.4.4.1 tell 10.4.4.2



without vlans on ix interface ip4 and ip6 is working

# tcpdump -i ix1
tcpdump: listening on ix1, link-type EN10MB
tcpdump: WARNING: compensating for unaligned libpcap packets
22:15:26.094897 fe80::21b:21ff:fe9e:6ea1  fe80::21b:21ff:fe9e:6c99: 
icmp6: echo request
22:15:26.095030 fe80::21b:21ff:fe9e:6c99  fe80::21b:21ff:fe9e:6ea1: 
icmp6: echo reply
22:15:26.128965 fe80::21b:21ff:fe9e:6c99  fe80::21b:21ff:fe9e:6ea1: 
icmp6: echo request
22:15:26.128982 fe80::21b:21ff:fe9e:6ea1  fe80::21b:21ff:fe9e:6c99: 
icmp6: echo reply

tcpdump: WARNING: compensating for unaligned libpcap packets
22:15:26.168977 10.5.5.1  10.5.5.2: icmp: echo request
22:15:26.168988 10.5.5.2  10.5.5.1: icmp: echo reply
22:15:27.094904 fe80::21b:21ff:fe9e:6ea1  fe80::21b:21ff:fe9e:6c99: 
icmp6: echo request
22:15:27.095038 fe80::21b:21ff:fe9e:6c99  fe80::21b:21ff:fe9e:6ea1: 
icmp6: echo reply
22:15:27.128972 fe80::21b:21ff:fe9e:6c99  fe80::21b:21ff:fe9e:6ea1: 
icmp6: echo request
22:15:27.128988 fe80::21b:21ff:fe9e:6ea1  fe80::21b:21ff:fe9e:6c99: 
icmp6: echo reply

22:15:27.178969 10.5.5.1  10.5.5.2: icmp: echo request
22:15:27.178980 10.5.5.2  10.5.5.1: icmp: echo reply


tcpbench (mtu 9014)

# tcpbench 10.5.5.2
  elapsed_ms  bytes mbps   bwidth
1000  153454782 1227.638  100.00%
Conn:   1 Mbps: 1227.638 Peak Mbps: 1227.638 Avg Mbps: 1227.638
2000  240513194 1924.106  100.00%
Conn:   1 Mbps: 1924.106 Peak Mbps: 1924.106 Avg Mbps: 1924.106
3000  291981960 2335.856  100.00%
Conn:   1 Mbps: 2335.856 Peak Mbps: 2335.856 Avg Mbps: 2335.856
4000  322381064 2579.049  100.00%
Conn:   1 Mbps: 2579.049 Peak Mbps: 2579.049 Avg Mbps: 2579.049
5001  430417974 3443.344  100.00%
Conn:   1 Mbps: 3443.344 Peak Mbps: 3443.344 Avg Mbps: 3443.344
6001  441683208 3533.466  100.00%
Conn:   1 Mbps: 3533.466 Peak Mbps: 3533.466 Avg Mbps: 3533.466
7001  440813894 3526.511  100.00%
Conn:   1 Mbps: 3526.511 Peak Mbps: 3533.466 Avg Mbps: 3526.511
8001  440753406 3526.027  100.00%
Conn:   1 Mbps: 3526.027 Peak Mbps: 3533.466 Avg Mbps: 3526.027
9002  440598806 3524.790  

Re: Sun blade 1500 experiences ?

2011-04-16 Thread Christiano F. Haesbaert
Thank you all for the replies, I'm getting the machine but will use it headless,
it seems it isn't nice enough for replacing a x61s.

Thanks again.
-- 
Christiano Farina HAESBAERT
Do NOT send me html mail.



Seminario Internacional Dr. Reynaldo Perrone

2011-04-16 Thread difusion-esa
[IMAGE]

Director: Dr. Horacio Serebrinsky - Director Acadimico: Dr. Marcelo R.
Ceberio

La Escuela Sistimica Argentina es una institucisn que desarrolla
actividades de formacisn de Terapeutas familiares sistimicos,
investigacisn y asistencia psicolsgica, en esta ocasisn tenemos el honor
de presentar:

Seminario internacional 2011

AGRESIVIDAD, AGRESIONES, VIOLENCIA Y PSICOPATOLOGMA
Dr. Reynaldo PERRONE

Las observaciones clmnicas realizadas durante cientos de consultas, han
permitido determinar que la capacidad a defenderse de las amenazas y de
los ataques del entorno relacional es determinante para el equilibrio y
la salud mental de las personas.
Una gran parte de las terapias tienen que ver con el sufrimiento
provocado -en las personas que consultan- por la impotencia vivida ante
las agresiones provenientes de los individuos con los que se vive tanto
sea en el marco de la pareja, de la familia o del trabajo.
En un alto porcentaje de casos la causa es la dificultad personal de
aquellos sujetos a instrumentalizar la agresividad;  poner en evidencia
esta falencia y eventualmente, remediarla, parece ser la vma mas acertada
de tratamiento.
En este seminario el Dr. Perrone desarrollara la problematica de la
agresividad, la dialictica de la dominacisn y de la sumisisn, explicara
ciertas derivas psicopatolsgicas de la violencia y evocara algunas formas
de suicidio caractermsticas de este trastorno.
Naturalmente, las lmneas terapiuticas y las ticnicas asociadas seran
desarrolladas ampliamente.

SABADO 30 DE ABRIL

DE 09 A 13 Y DE 15 A 19hs

CUPOS LIMITADOS - Fecha lmmite de inscripcisn: Lunes 25 de abril

  * PLAN DE LA PRESENTACISN
Agresividad, agresisn y violencia. Nociones claves
A propssito de la agresividad: una conceptualizacisn innovadora de la
relacisn entre personas y grupos
3 formas de violencia. Secuelas, evolucisn y psicopatologma
Los bajos fondos del suicidio: suicidio como represalia, como
manifestacisn de auto desprecio y como punto final ganador
El smndrome del Angel
Terapia de la falta de agresividad. Ejercicios y ticnicas

  * OBJETIVOS
Conceptualizar la funcisn de la agresividad
Establecer una diferencia entre agresividad, agresisn y violencia
Proponer una lectura de la relacisn interpersonal e inter grupal con
respecto a la agresividad
Analizar la problematica de la violencia, su evolucisn y las secuelas
psicopatolsgicas
Discutir sobre unas formas de suicidio propias a  la violencia
Comunicar un smndrome clmnico
Explicar las modalidades de la terapia de los problemas ligados a la
falta de agresividad

(1) Smntesis del Curriculum Vitae
Graduado en la Universidad Nacional del Litoral, Rosario, Argentina
(1967)
Psychiatria, terapeuta de familia y de pareja
Medico asistente en hospitales psiquiatricos de Suiza (1973-1977)
Medico asistente y responsable de Sector en Paido-psichiatria en el
Hospital Universitario St Jean Bonnefonds de St Etienne, Francia
(1973-1984)
Consultante especializado en problemas de violencia y abusos sexuales en
el Servicio de Salud Escolar de Saint Etienne, Francia (1984-1991)
Psiquiatra en el Servicio de Urgencias en el Hospital Eduard Herriot en
Lyon, Francia (1991-1993).
Psiquiatra consultante en la Sauvegarde de lEnfance en Lyon, Francia
(1994-2006)
Profesor Asociado de Psicopatologma en la Facultad de Psicologma Pierre
Mindez France de Grenoble, Francia (1992-1997)
Fundador y director (1984-1994) del IFATC (Instituto de Formacisn y de
Aplicacisn de Terapias de la Comunicacisn), de Lyon, Francia. Responsable
del mismo Instituto (1997-2008) y actual Director de Estudios del
IFATC.  
Formador de ticnicas de terapia en hospitales y centros de formacisn en
Francia, Europa y Amirica Latina
Formador y supervisor en el marco de diferentes consejos Regionales
franceses : Alpes Marmtimos, Loire, Loire Atlantique, Haute Loire, Rhtne
Alpes
Formador y supervisor en Francia, Suiza, Espaqa, Bilgica, Canada,
Argentina, Guadalupe, Guyana en terapia de familia, en terapia de pareja
y terapia breve
Profesor en Master de Ticnicas de terapia en la Universidad de Salamanca,
en la Universidad del Pams Vasco en San Sebastian y en la Universidad
Complutense de Madrid, Espaqa
Docente en la Escuela de Servicios Sociales en la Universidad St Joseph
en Beirut, Lmbano
Formador de trabajadores sociales, psicslogos, psiquiatras, educadores,
pediatras, jueces, en programas de entrenamiento de la prevencisn y del
tratamiento de violencia y de abusos sexuales en la familia
Autor de numerosos artmculos sobre la violencia, los abusos sexuales y
los defectos de interiorizacisn de la ley
Co-autor del libro + Violencia y abusos sexuales en la familia ; editado
en francis (ESF editores, quinta edicisn) y en espaqol (Paidos, quinta
edicisn)
Autor de numerosas ticnicas inductivas de terapia
Terapeuta y formador en terapia breve

INFORMES E INSCRIPCISN E.S.A.:

Fray Justo S. M. de Oro 1843 (C1414DBC) Cap. Fed.
Te/Fax: 4774-2875/6112