Re: I want buy labtop ,work OpenBSD, wireless network must work

2011-12-30 Thread Juan Francisco Cantero Hurtado

On 12/30/2011 10:06 AM, Mostaf Faridi wrote:

Thanks all guys .
Sorry for my bad English , I must use laptop , but I used labtop .
For me model is very important ,for example I want know which model of
Lenovo work good with OpenBSD . For example I want know Lenovo ThinkPad
7000t work good or no


Don't worry about the wireless adapter. If It isn't compatible, buy a 
nano wifi adapter [1] (are very cheap and compatible).


The other hardware is more important because you can't change this if 
your election is bad. Just buy a good laptop :)


1.- http://www.andahammer.com/assets/Uploads/HomePage/EDUPNano2.jpg

Cheers.

--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Longsoon/Godson MIPS boxes, where to buy?

2012-01-02 Thread Juan Francisco Cantero Hurtado

On Mon, 02 Jan 2012 18:10:19 +0100, Nomen Nescio nob...@dizum.com wrote:


Why not? They're using their own chip design. I doubt they pay MIPS.inc  
for a license but maybe they do.


FYI, they has a MIPS license.

--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Longsoon/Godson MIPS boxes, where to buy?

2012-01-02 Thread Juan Francisco Cantero Hurtado
On Tue, 03 Jan 2012 01:53:32 +0100, Juan Francisco Cantero Hurtado  
i...@juanfra.info wrote:


On Mon, 02 Jan 2012 18:10:19 +0100, Nomen Nescio nob...@dizum.com  
wrote:


Why not? They're using their own chip design. I doubt they pay MIPS.inc  
for a license but maybe they do.


FYI, they has a MIPS license.


s/has/have/

--
Juan Francisco Cantero Hurtado http://juanfra.info



The (unofficial) opebsd repo in github is outdated

2012-01-13 Thread Juan Francisco Cantero Hurtado

Firstly, sorry if this is a bit off-topic for the list.

The openbsd repo in github is outdated. Are the owners reading the list?  
Can someone update the repo?. Github doesn't show me a contact address for  
the organization, so I thing this list is the best option for report the  
problem.


Thanks.

--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: The (unofficial) opebsd repo in github is outdated

2012-01-13 Thread Juan Francisco Cantero Hurtado
On Sat, 14 Jan 2012 01:37:49 +0100, Stuart Henderson s...@spacehopper.org  
wrote:



Do not use it, the import tool is broken.


OK. Thanks.

--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: The (unofficial) opebsd repo in github is outdated

2012-01-14 Thread Juan Francisco Cantero Hurtado

On Sat, 14 Jan 2012 01:46:50 +0100, joshua stein j...@jcs.org wrote:


The openbsd repo in github is outdated. Are the owners reading the
list? Can someone update the repo?. Github doesn't show me a contact
address for the organization, so I thing this list is the best
option for report the problem.


the cvs-to-git conversion tool i was using was not producing 100%
accurate trees, leaving some extra files in some of the release
branches and causing some builds to break.  the trees were not being
updated while i was resuming work on my own conversion tool to fix
these problems.

since a few people have asked about them, i've just deleted the
github repos to avoid confusion.  the new trees will have different
histories and git commit hashes so they will need to be
re-downloaded/forked anyway.  i will push the new trees back up to
github when the tool is finished and i have verified that all of the
branches are identical to the cvs versions.




Thanks for your work. I noticed the problem in December but I preferred  
give some of time to the owners before of report the problem.


I was reading yesterday about the available conversion tools cvs - git.  
The conversion seems a very complex task.


--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: youtube works, thanks!

2012-01-21 Thread Juan Francisco Cantero Hurtado
On Fri, 20 Jan 2012 20:46:05 +0100, Tomas Bodzar tomas.bod...@gmail.com  
wrote:


On Fri, Jan 20, 2012 at 8:14 PM, Peter J. Philipp p...@centroid.eu  
wrote:

Hi,

I noticed today by accident that the videos on Youtube work. B They are

HTML5.
The sound I made happen by by starting aucat -l. B Is this old news  
or am

I dreaming?


Old news. Watching HTML5 videos for about year. xxxterm is better then
ff in my case.



I've been using the HTML5 option of Youtube since the first day. The  
problem was that a lot of videos only were available with flash, e.g.: the  
official channels of popular artists.


In the last days, I noticed that the limitation is off and all the videos  
are available in webm.


So, old news with new news :)

Cheers.

--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: looking for hardware recommendations, x86 or otherwise.

2012-02-02 Thread Juan Francisco Cantero Hurtado

On Thu, 02 Feb 2012 01:41:42 +0100, Lars nore...@z505.com wrote:


https://en.wikipedia.org/wiki/Raspberry_Pi

It's called viral marketing, PR, social crap whatever. Raspberry Pi
foundation claims something about support for schools and
blahblahblah, but in fact was created but one of engineers of
Broadcom. It's just test bed for their proprietary crap or vendor lock
in via children and a way how to lower taxes via charity organization
without real charity.





What's so funny is that they put GNU/Linux on it, when gNU is supposed to
be about FREE dom. LOL. Fucking LOL.

I think Raspberry Pi isn't so useful for my needs anyway because for
example it only has one network port, not two or three...

For poor people in third world countries I think they would be better off
buying used 1ghz-2ghz Desktop computers for $50/each that includes PCI
slots and such. I've purchased some computers less than 50 dollars. The
only advantage of the raspberry pi over a used desktop PC is that it uses
much less power (1 Watt or whatever) and that it is really small. I don't
see how a small tiny circuit will help third world countries but I can  
see

an advantage to 1 watt electricity.




Each watt consumed is very important if various computers are connected to  
a solar panel. The decisions taken during the design of the OLPC are a  
good example.



--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: should 'make -j8 build' work?

2012-02-07 Thread Juan Francisco Cantero Hurtado

On Tue, 07 Feb 2012 19:01:42 +0100, Joe Gidi j...@entropicblur.com wrote:


I just built a new box with one of AMD's FX-8120 8-core processors and
wanted to stress-test it a bit. I installed the Feb 6 amd64 snapshot,
checked out a src tree, and had no trouble compiling GENERIC.MP. I tried
compiling userland with make -j8 build and the box hung.

Before I go further in depth with troubleshooting, I'd just like to know
if this should work properly on good hardware. If it's known not to
work, I won't waste my (or the lists') time on figuring out why it's
hanging.

Also, is there a maximum number of make jobs that should work? I used to
run 'make -j4 build successfully on my previous 4-core system...

Thanks for any feedback,



A very good general stress test is a full build of the ports tree. You can  
build 8 different packages at time. http://openbsd.org/faq/faq15.html#dpb



--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: long hangs with heavy IO (was: should 'make -j8 build' work?)

2012-02-10 Thread Juan Francisco Cantero Hurtado
On Thu, 09 Feb 2012 04:59:36 +0100, Benny Lofgren bl-li...@lofgren.biz  
wrote:



On 2012-02-09 00.38, Chris Cappuccio wrote:

Benny Lofgren [bl-li...@lofgren.biz] wrote:

(For example, I'd love to see Jeff Robertson's and Kirk McKusick's
work on soft update journaling that went into FreeBSD 9 in OpenBSD
as well. Had I the time I'd look into it myself (it's a *lot* of work
from what little I've seen of it, but no doubt it would be FUN work)
but alas I don't at the moment, so all I can do is post this wish. :-)



It might be FUN to use when it's actually working. But if porting it  
over and teasing out the bugs was all that much fun, you think someone  
would have reaped those rewards by now. Actually, data loss is really  
not much fun. Softupdates is one of the worst, because while it has  
'worked' for years, it has had major bugs for a long time, complete  
with hard to reproduce, hard to diagnose problems. If this make -j8  
hang is another softdep problem, that's just another testament to how  
much FUN it really is. If George Soros were to fund OpenBSD  
development, and all the developers could permanently live in a palace  
in the Swiss Alps, softupdates work might be considered fun. In that  
case, OpenBSD would end up with its own custom modern filesystem,  
written by someone who didn't kill their wife. I

  think the Soros/Swiss Alps idea is an excellent one.

Well, according to the OP the make problem turned out to be hardware
related, as you may have seen by now.

You are certainly entitled to your opinion and whatever banter you feel
the need to dish out get your point across, but I actually DO like to
work on complex file system code (although I've hardly touched any in
a decade or so) so yes, I would consider it a fun and rewarding task.
Really. :-)

I've run very large, very heavily utilized softdep enabled filesystems
for years and years and have never, not once, lost data. That's anecdotal
evidence for sure, and I don't doubt there are or have been nasty bugs in
the code, but in my opinion the current OpenBSD ffs/ffs2 implementation
is nonetheless *very* stable and mature.

My servers very rarely crash - they run OpenBSD after all - but when they
do it's frustrating to wait for hours for the fsck:s to complete (my file
systems are usually rather big), so I'd love to have a journaling or
logging file system with matching stability to choose from in OpenBSD.

But since one hasn't magically materialized yet I've begun to look around
for likely candidates for implementation in OpenBSD, and the most likely
route I've found so far is journaling softdep.


Take a look of hammer2  
http://www.shiningsilence.com/dbsdlog/2012/02/09/9173.html . This a modern  
FS and the developers wants to build a version more portable than the  
original hammer.


But you're right, the FS will not be implemented magically and without a  
lot of efforts.




I've never pretended to have the final answer to anything, but if *I*
were to try to implement something I'd probably look to journaling  
softdep

first, because I think it's got potential and might well be the path of
least resistance to achieving a working port.

Also I'm of course not expecting anyone else to do a single minute's  
worth
of free work to satisfy MY needs. I tried to word my mail carefully to  
avoid

people getting that impression, but maybe I failed.


Regards,
/Benny




--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: halt -p not powering down Sony Vaio (13 Feb snapshot)

2012-02-21 Thread Juan Francisco Cantero Hurtado
Try sysctl -w machdep.apmhalt=1 before of halt -p. I don't know if is  
correct or not, but /etc/sysctl.conf suggests this setting.


Good luck :)

--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: install questions

2012-03-18 Thread Juan Francisco Cantero Hurtado
On Sun, Mar 18, 2012 at 08:11:12AM -0600, fullmoon wrote:
 Before burning a USB stick and attempting a live install, I'd like
 to do whatever is possible to avoid wiping my entire hard-drive.  I
 have an extended partition available but will have to do some
 shifting if a primary partition is required.
 
I have a better idea. You can burn the iso image in a CD and install the
system in your USB stick. Now you have a liveusb with openbsd.

Anyway, read the FAQ.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: xfce4 freeze on Loongson netbook

2012-03-20 Thread Juan Francisco Cantero Hurtado
On Tue, Mar 20, 2012 at 11:41:56PM +0800, Alan Cheng wrote:
 Hello List,
 
 So I'm using a Loongson YeeLoong netbook. I installed XFCE4 without any
 issues, But it will freeze after around 15 minutes, even if I do nothing on
 it. Starting terminal will cause it to freeze immediately.
 
 I can still SSH into this netbook after freeze and everything else seems to
 be fine.
 
 This happens back during 4.9 days. It's the same on 5.0 and current
 snapshot.
 
 Any insight will be appreciated. and I'll be glad to provide any info
 required to troubleshoot this.
 
 I'm not sure exactly what info will be needed, so I'll start with dmesg.
 More will be provided as necessary:

I can't help with your problem but if you run the window manager with
startx, the output of startx is always very useful. Run startx
with this command:
startx 1startx-output.log 21

Also, you can log in your loongson with ssh, execute tail -f
startx-output.log and look the errors in real time when your wm is
freeze.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Qualcomm collaboration summit

2012-04-09 Thread Juan Francisco Cantero Hurtado
On Mon, Apr 09, 2012 at 12:01:42PM -0400, Michel Blais wrote:
 Anyone had a look at Qualcomm collaboration summit to kill
 proprietary drivers ? I'm supprised I didn't see any mail about
 this.
 
 http://www.scribd.com/doc/87328384/Linux-Collaboaration-Summit-Qualcomm
 

http://www.phoronix.com/scan.php?page=news_itempx=MTA3OTc

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



sndiod is not working for me

2012-04-29 Thread Juan Francisco Cantero Hurtado
0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
0x0050: Capability 0x05: Message Signaled Interrupts (MSI)
0x0068: Capability 0x11: Extended Message Signaled Interrupts (MSI-X)
0x0078: Capability 0x01: Power Management
0x0080: Capability 0x10: PCI Express
Link Speed: 5.0 / 5.0 Gb/s Link Width: x1 / x1



-- 
Juan Francisco Cantero Hurtado http://juanfra.info



The multimedia keys of my usb keyboard don't work

2012-04-29 Thread Juan Francisco Cantero Hurtado
 22=09 23=09 24=37 
3e=03 words 00=ff0d 01=0d17 02=1726 03=2600 04= 05= 06= 07=
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600
azalia0 at pci0 dev 20 function 2 AMD Hudson HD Audio rev 0x01: apic 3 int 16
azalia0: codecs: Realtek/0x0887
audio0 at azalia0
pcib0 at pci0 dev 20 function 3 AMD Hudson LPC rev 0x11
ppb0 at pci0 dev 20 function 4 AMD Hudson PCI rev 0x40
pci1 at ppb0 bus 1
ppb1 at pci1 dev 5 function 0 PLX PEX 8112 rev 0xaa
pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 ATI Radeon HD 4350 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 3 int 20
drm0 at radeondrm0
azalia1 at pci2 dev 0 function 1 ATI Radeon HD 4000 HD Audio rev 0x00: msi
azalia1: no supported codecs
ohci2 at pci0 dev 20 function 5 vendor AMD, unknown product 0x7809 rev 0x11: 
apic 3 int 18, version 1.0, legacy support
ppb2 at pci0 dev 21 function 0 vendor AMD, unknown product 0x43a0 rev 0x00
pci3 at ppb2 bus 3
ppb3 at pci0 dev 21 function 1 vendor AMD, unknown product 0x43a1 rev 0x00
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 Realtek 8168 rev 0x06: RTL8168E/8111E-VL 
(0x2c80), apic 3 int 17, address 54:04:a6:61:ed:aa
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb4 at pci0 dev 21 function 3 vendor AMD, unknown product 0x43a3 rev 0x00
pci5 at ppb4 bus 5
ASMedia ASM1042 xHCI rev 0x00 at pci5 dev 0 function 0 not configured
ohci3 at pci0 dev 22 function 0 AMD Hudson USB rev 0x11: apic 3 int 18, 
version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 AMD Hudson USB rev 0x11: apic 3 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 AMD EHCI root hub rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 AMD AMD64 14h Link Cfg rev 0x43
pchb2 at pci0 dev 24 function 1 AMD AMD64 14h Address Map rev 0x00
pchb3 at pci0 dev 24 function 2 AMD AMD64 14h DRAM Cfg rev 0x00
km0 at pci0 dev 24 function 3 AMD AMD64 14h Misc Cfg rev 0x00
pchb4 at pci0 dev 24 function 4 AMD AMD64 14h CPU Power rev 0x00
pchb5 at pci0 dev 24 function 5 AMD AMD64 14h Reserved rev 0x00
pchb6 at pci0 dev 24 function 6 AMD AMD64 14h NB Power rev 0x00
pchb7 at pci0 dev 24 function 7 AMD AMD64 14h Reserved rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 AMD OHCI root hub rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 AMD OHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 AMD OHCI root hub rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 AMD OHCI root hub rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uhidev0 at uhub3 port 3 configuration 1 interface 0 Logitech USB Trackball 
rev 1.10/14.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 5 buttons
wsmouse0 at ums0 mux 0
uhidev1 at uhub3 port 5 configuration 1 interface 0 Logitech USB Multimedia 
Keyboard rev 1.10/0.70 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub3 port 5 configuration 1 interface 1 Logitech USB Multimedia 
Keyboard rev 1.10/0.70 addr 3
uhidev2: iclass 3/0, 2 report ids
uhid0 at uhidev2 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=4, output=0, feature=0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd1a (94a1f27b47f9403a.a) swap on sd1b dump on sd1b


-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: The multimedia keys of my usb keyboard don't work

2012-05-01 Thread Juan Francisco Cantero Hurtado
On Tue, May 01, 2012 at 12:12:45PM +, Stuart Henderson wrote:
 On 2012-04-29, Juan Francisco Cantero Hurtado i...@juanfra.info wrote:
  Hi. The multimedia keys of my usb keyboard don't work. xev shows
  nothing when I press the keys. I've searched in the archives but I've
  found nothing.
 
  I've tried the integrated keyboard of my netbook with the same layout
  (pc105 es) and this works without problems.
 
  I've tried the usb keyboard on two computers (with different arch and
  wm) and doesn't work the multimedia keys. On other OS the keyboard works
  perfect.
 
  Am I missing something? Any suggestion?
 
 usbhidaction(1)

Perfect. Thanks a lot :D

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: OpenBSD 5.1 i386- ports vs packages

2012-05-05 Thread Juan Francisco Cantero Hurtado
On Sat, May 05, 2012 at 11:15:13PM +, Dimitry T wrote:
 After a long reading I am still confused. On OpenBSD FAQ recommend to
 use packages, most users speak the same, but some speak that it is
 safer to compile programs from ports and then programs have better
 performance.

It is not more safer and the programs don't have better performance.
Please, ignore the users misinformed.

 Did I get the better performance of the program on my
 hardware if i compile that program on my hardware from ports? I try to
 compare md5 of package compiled from ports with package downloaded
 from package server, and values bbdo not match. Surely I wrong
 somewhere, but I would like someone to explain me packages vs ports.

The hash is different because the files are different but the *content*
is the same.

--
Juan Francisco Cantero Hurtado http://juanfra.info



Re: stresstest + safest crashlog?

2012-05-13 Thread Juan Francisco Cantero Hurtado
On Sun, May 13, 2012 at 05:47:55PM +0200, Petah wrote:
 I've had a bunch of crashes freezing one PC to such an extent I
 couldn't recover any log, switch tty, ssh from outside and the machine
 has no serial port.
 
 What's the surest way to get a crashlog? syslog to a 2nd PC, a USB key
 with log-cow, buy a PCI serial port card?

If you can exit to ddb, the extraction of information (dmesg, panic,
etc) is easy.

man 8 crash
man 4 ddb
man 8 savecore

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Idea for apmd

2012-05-30 Thread Juan Francisco Cantero Hurtado
Hi. I've been using OpenBSD on my netbook daily for a few months. I was
using apmd with the -C setting. My netbook is slow and the battery life
is important, so 800Mhz (apmd -C) or 1600Mhz (apm -A) is not a big
difference for me.

Now I have a desktop computer with support for cpu speed scaling. In
this case the options of apmd are very limited. If I use -A my cpu is
always at 2700Mhz, wasting energy and heating my room (I live in the
very sunny Extremadura :) ). If I use -C, apm rarely raises the speed
and the cpu is almost always at 800Mhz.

This is important because when I open a web page with a lot of
javascript, the browser is very slow. Also when I compile something with
make -j1, apmd doesn't raise the speed of my CPU, I need use make
-j4 for raising the cpu speed to 2700Mhz.

I understand the problem with the limits of apmd. The developers can't
generate a limits for each CPU and workflow. I've been playing with the
values of PERFINCTHRES and PERFDECTHRES on usr.sbin/apmd/apmd.c and
checking the changes of speed with while true; do apm | grep cool;
sleep 1; done. I'm using 20 and 60 respectively right now. Probably
this values aren't the best values but are better than the defaults (for
my CPU and workflow). The performance is very good and I can see the cpu
speed raising and lowering. I've tested various values and 20/60 are a
good compromise performance vs energy consumption.

In short, I have a suggestion for apmd. Add one option for to set
PERFINCTHRES and other for to set PERFDECTHRES. Each user could to
configure the behavior of apm -C on rc.conf.local. Example:
apmd_flags=-C -I 20 -D 60. Obviously, apm -C would use the defaults
if both options aren't used.

The implementation is simple and it will not break any system.
Unfortunately I can't code the idea (despite I've read the code), so I
wanted share this with you.  Some developer interested? :)

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Idea for apmd

2012-05-31 Thread Juan Francisco Cantero Hurtado
On Thu, May 31, 2012 at 11:15:13AM -0400, Ted Unangst wrote:
 On Thu, May 31, 2012 at 08:28, Tomas Bodzar wrote:
  On Thu, May 31, 2012 at 3:45 AM, Juan Francisco Cantero Hurtado
  i...@juanfra.info wrote:
 
  This is important because when I open a web page with a lot of
  javascript, the browser is very slow. Also when I compile something with
  make -j1, apmd doesn't raise the speed of my CPU, I need use make
  -j4 for raising the cpu speed to 2700Mhz.
  
  What shows top, vmstat, systat about %sys, %usr, %idle during that
  time? Because you can have 800MHz of CPU, but %usr and/or %sys can be
  eg. only 20% so there's no reason to switch to higher frequency.
 
 apmd scaling works like crap with more than one cpu.  This was fixed,
 then unfixed, but you can get the code from cvs if you like.

Thanks for the info. I'll take a look.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Idea for apmd

2012-05-31 Thread Juan Francisco Cantero Hurtado
On Thu, May 31, 2012 at 08:28:34AM +0200, Tomas Bodzar wrote:
 On Thu, May 31, 2012 at 3:45 AM, Juan Francisco Cantero Hurtado
 i...@juanfra.info wrote:
  Hi. I've been using OpenBSD on my netbook daily for a few months. I was
  using apmd with the -C setting. My netbook is slow and the battery life
  is important, so 800Mhz (apmd -C) or 1600Mhz (apm -A) is not a big
  difference for me.
 
  Now I have a desktop computer with support for cpu speed scaling. In
  this case the options of apmd are very limited. If I use -A my cpu is
  always at 2700Mhz, wasting energy and heating my room (I live in the
  very sunny Extremadura :) ). If I use -C, apm rarely raises the speed
  and the cpu is almost always at 800Mhz.
 
  This is important because when I open a web page with a lot of
  javascript, the browser is very slow. Also when I compile something with
  make -j1, apmd doesn't raise the speed of my CPU, I need use make
  -j4 for raising the cpu speed to 2700Mhz.
 
 What shows top, vmstat, systat about %sys, %usr, %idle during that
 time? Because you can have 800MHz of CPU, but %usr and/or %sys can be
 eg. only 20% so there's no reason to switch to higher frequency.

I've been using top for to check %idle. The problem is that apmd
calculates the average idle. If your system has two cores, the first
with 98%idle and the second with 20%idle, apmd doesn't raise the cpu
speed.

Use limits less strict is the simplest workaround for me.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Idea for apmd

2012-06-01 Thread Juan Francisco Cantero Hurtado
On Thu, May 31, 2012 at 11:21:20PM +, Stuart Henderson wrote:
 On 2012-05-31, Ted Unangst t...@tedunangst.com wrote:
  On Thu, May 31, 2012 at 08:28, Tomas Bodzar wrote:
  On Thu, May 31, 2012 at 3:45 AM, Juan Francisco Cantero Hurtado
  i...@juanfra.info wrote:
 
  This is important because when I open a web page with a lot of
  javascript, the browser is very slow. Also when I compile something with
  make -j1, apmd doesn't raise the speed of my CPU, I need use make
  -j4 for raising the cpu speed to 2700Mhz.
  
  What shows top, vmstat, systat about %sys, %usr, %idle during that
  time? Because you can have 800MHz of CPU, but %usr and/or %sys can be
  eg. only 20% so there's no reason to switch to higher frequency.
 
  apmd scaling works like crap with more than one cpu.  This was fixed,
  then unfixed, but you can get the code from cvs if you like.
 
 
 
 conflicts. if anyone wants it they could grab it from junkpile.org/apmd.diff 

Thanks for the patch!

I've been using the version 1.51 of apmd.c since yesterday. I can feel
the difference with respect to the last version of apmd.

Is it possible to add a new option to apmd for to select between the new
and the old code?. I mean, eg: -C for use the new code with better SMP
support and -O for compatibility mode with the old code for people
with problematic machines.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Customizing the install process

2012-06-07 Thread Juan Francisco Cantero Hurtado
On Thu, Jun 07, 2012 at 04:46:45PM +0530, Jay Patel wrote:
 Hi all,
 
 I want to know how to achieve customizing my iso for installing OpenBSD on
 10 workstation with pre configured gnome. I read the FAQ about siteXX.tgz
 http://www.openbsd.org/faq/faq4.html#site  but couldn't find more resources
 also cant find man pages for that.is it safe to go that way or should i
 install gnome separately for all boxes?
 

Firstly, you need replicate the gnome config on all your boxes.
siteXX.tgz and /etc/skel is perfect for this.

For the installation of the gnome packages, you can install gnome on
the first machine, copy the packages to other CD and use the CD on the
other machines. Just mount the CD and set PKG_PATH to the mount point
http://www.openbsd.org/faq/faq15.html#Easy .

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Learning C Programming

2012-06-21 Thread Juan Francisco Cantero Hurtado
Some good or bad comments about Deitel's C How to program?
http://www.deitel.com/Books/C/CHowtoProgram7e/tabid/3635/Default.aspx

I have other book in Spanish related to C, but is too focused on
software engineering (boring). I saw the past editions of Deitel's book
a few days ago by a good price.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Learning C Programming

2012-06-21 Thread Juan Francisco Cantero Hurtado
On Thu, Jun 21, 2012 at 03:56:50PM -0400, Simon Perreault wrote:
 On 2012-06-21 15:21, Juan Francisco Cantero Hurtado wrote:
 Some good or bad comments about Deitel's C How to program?
 http://www.deitel.com/Books/C/CHowtoProgram7e/tabid/3635/Default.aspx
 
 The worst book on C programming I've ever read.
 
 No, scratch that.
 The worst book on programming I've ever read.
 
 No, it's worse.
 The worst book I've ever read. All categories.

Thanks for the advice!

I'll buy a cheap copy of KR that I've found a few hours ago. I've been
wanting buy this book for years but I only found expensive copies.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Recommendation about books related with OS internals

2012-06-21 Thread Juan Francisco Cantero Hurtado
These days I'm buying a few books related to programming and OSs. I
don't want convert this mailing list on an books recomendation website,
so let me take advantage of the last questions about books for one
question more and we can kill this type of threads for a long time :)

Can you recommend me a book about OS internals? I want a book about
unix/bsd and focused more on the concepts and less on the code. Even
better if the book contains info about OpenBSD.

The comments on the webs of books stores are unrealistic because all the
punctuations are 5/5 or 4/5 on this type of books. And webs like
StackOverflow are uncritical with the books.

Thanks.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Learning C Programming

2012-06-21 Thread Juan Francisco Cantero Hurtado
On Fri, Jun 22, 2012 at 07:19:32AM +0530, Amarendra Godbole wrote:
 On 22-Jun-2012, at 7:06 AM, Juan Francisco Cantero Hurtado i...@juanfra.info
 wrote:
 
  On Thu, Jun 21, 2012 at 03:56:50PM -0400, Simon Perreault wrote:
  On 2012-06-21 15:21, Juan Francisco Cantero Hurtado wrote:
  Some good or bad comments about Deitel's C How to program?
  http://www.deitel.com/Books/C/CHowtoProgram7e/tabid/3635/Default.aspx
 
  The worst book on C programming I've ever read.
 
  No, scratch that.
  The worst book on programming I've ever read.
 
  No, it's worse.
  The worst book I've ever read. All categories.
 
  Thanks for the advice!
 
  I'll buy a cheap copy of KR that I've found a few hours ago. I've been
  wanting buy this book for years but I only found expensive copies.
 
  --
  Juan Francisco Cantero Hurtado http://juanfra.info
 [...]
 
 It is rather surprising since Prentice Hall of India have been selling this
 book for Rs. 95 for the last 15 yrs or so, which is less than $2 US.

I know. I'm buying an indian version :P

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Recommendation about books related with OS internals

2012-06-22 Thread Juan Francisco Cantero Hurtado
On Thu, Jun 21, 2012 at 10:41:07PM -0400, Ted Unangst wrote:
 On Fri, Jun 22, 2012 at 04:07, Juan Francisco Cantero Hurtado wrote:
  These days I'm buying a few books related to programming and OSs. I
  don't want convert this mailing list on an books recomendation website,
  so let me take advantage of the last questions about books for one
  question more and we can kill this type of threads for a long time :)
  
  Can you recommend me a book about OS internals? I want a book about
  unix/bsd and focused more on the concepts and less on the code. Even
  better if the book contains info about OpenBSD.
 
 Does nobody read the website any more?
 
 http://www.openbsd.org/books.html

D'oh! I forgot books.html. Sorry for the noise.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Recommendation about books related with OS internals

2012-06-22 Thread Juan Francisco Cantero Hurtado
On Fri, Jun 22, 2012 at 06:14:04PM +0200, Marc Espie wrote:
 On Fri, Jun 22, 2012 at 05:47:05PM +0200, Juan Francisco Cantero Hurtado 
 wrote:
  On Thu, Jun 21, 2012 at 10:41:07PM -0400, Ted Unangst wrote:
   On Fri, Jun 22, 2012 at 04:07, Juan Francisco Cantero Hurtado wrote:
These days I'm buying a few books related to programming and OSs. I
don't want convert this mailing list on an books recomendation website,
so let me take advantage of the last questions about books for one
question more and we can kill this type of threads for a long time :)

Can you recommend me a book about OS internals? I want a book about
unix/bsd and focused more on the concepts and less on the code. Even
better if the book contains info about OpenBSD.
   
   Does nobody read the website any more?
   
   http://www.openbsd.org/books.html
  
  D'oh! I forgot books.html. Sorry for the noise.
 
 Hipsters don't read our website :)
 
 static html, no CSS, come on.

I update each day my CVS repo of www. I could have found the info
just using grep :(

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Memory error with latest snapshot

2012-06-23 Thread Juan Francisco Cantero Hurtado
On Sat, Jun 23, 2012 at 12:10:09PM -0500, Chris Bennett wrote:
 I am getting the following error when trying to run gvim and xombrero
 I also got it on snapshot before latest for xombrero.
 
 
 ***MEMORY-ERROR***: xombrero[25991]: GSlice: failed to allocate 8184
 bytes (alignment: 8192): Invalid argument
 Running i386
 
 Is it snapshot or something I need to do here?
 

Read the thread on the mailing list: GSlice: failed to allocate

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Romanian layout in OpenBSD

2012-06-27 Thread Juan Francisco Cantero Hurtado
On Wed, Jun 27, 2012 at 09:07:53PM +0300, Claudiu Tanaselia wrote:
 Hi Paul,
 
 Nice to see other gyp^H^H^HRomanians around here.
 
 I don't know why I chose UTF-16, it was just to make sure everybody
 knew what characters I was referring to. Could have been UTF-8 as
 well, just a bad pick from my part.
 
 Thanks for your input, I'll need some time to digest and understand
 all your settings (still testing things out and still learning).
 
 For the time being, I'm using Xfce with its own keyboard layout
 options and works great for my Office-like text editor needs, but if
 I'll ever change my desktop manager, I'll have to find some more
 general approaches, like you suggested.

For the X keyboard settings, you can use setxkbmap. Just add the
correct command to your .xinitrc. I'm using a interchangable layout with
caps lock key for spanish/english keyboard but you can change the
layouts to your needs.

- Search the correct layouts in /usr/X11R6/share/X11/xkb/rules/base.lst
- Add to your .xinitrc:
  - If you only need one layout: setxkbmap -layout es
  - If you need various variants: setxkbmap -layout es, us -variant 
, altgr-intl -option grp:caps_toggle

You also can use the file xorg.conf for the settings but with
setxkbmap+xinitrc each user can have a different config. The XFCE
configuration tool is a frontend for the Xorg options.

 Thought as wscons as the most general approach to Romanian special
 characters, but you're right, it's not like someone's using them
 outside X anyway.
 
 Thanks!
 Claudiu

I can't help with wscons config.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: OpenBSD's webpage desing

2012-06-27 Thread Juan Francisco Cantero Hurtado
On Wed, Jun 27, 2012 at 07:48:46PM +0200, Bret Lambert wrote:
  PHP is like s early 2000s. ?When's Python gonna go into base?
 
 You're behind the times; python's been replaced by ruby running on top
 of mongodb

I see each day more developers migrating their personal websites from
php/python/ruby/whatever to static html.

And well, it's impossible apply a patch to the content of a dynamic
website.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: cpu choice for firewall

2012-06-28 Thread Juan Francisco Cantero Hurtado
On Thu, Jun 28, 2012 at 10:50:28AM -0700, Joe S wrote:
 I'm looking to build a new mini-itx firewall based on OpenBSD and
 would like to get some advice on CPU selection. I've seen multiple
 statements on this list that indicate CPU cache and CPU speed are the
 most important factors. Sorry if this is a silly question, but which
 cache is most useful for what I'm trying to do? L1, L2, or L3?

https://en.wikipedia.org/wiki/CPU_cache#Multi-level_caches

 What's more important from a CPU point of view? I don't have a
 specific amount of throughput that I'm targeting. I'm very curious as
 to what kind of differences I'm likely to see.
 
 By the way, the two CPU's I'm looking at are:
 
 Intel Atom D2500 (on Intel D2500CC motherboard)
 Frequency (MHz): 1867
 L1 cache: 32 KB (code) / 24 KB (data)
 L2 cache: 1024 KB
 L3 cache: none
 
 Intel G620 (on Intel S1200KP motherboard)
 Frequency (MHz): 2600
 L1 cache: 64 KB (code) / 64 KB (data)
 L2 cache: 512 KB
 L3 cache: 3072 KB
 
 The cache numbers are very different on these CPUs.
 (both boards are mini-itx and have dual intel gigabit nics)

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: gimp 2.8 on OpeBSD -current

2012-07-03 Thread Juan Francisco Cantero Hurtado
On Tue, Jul 03, 2012 at 10:35:28PM +0100, Fred Crowson wrote:
 Hi misc@
 
 I'm getting the following errors when running gimp-2.8.0p0 on OpenBSD
 -current (Jun 28 i386 snapshot):
 
 x41:fred ~ gimp reading.jpg
 /usr/local/lib/gimp/2.0/plug-ins/file-jpeg: fatal error: Segmentation fault
 
 (gimp:18542): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
 
 This issue is only with opening jpeg files - I can create new files
 and export them to jpeg or png or save the as .xcf files fine.
 
 Any clues to debugging this issue further?

/usr/ports/infrastructure/bin/out-of-date

out-of-date will show you if some package or dependendy is outdated.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Running OpenBSD on an Acer Aspire One 110L netbook

2012-07-04 Thread Juan Francisco Cantero Hurtado
Hi. I've a AAO 150. The hardware is similar.

On Wed, Jul 04, 2012 at 06:33:38PM +0200, mlambda wrote:
 Before installing OpenBSD on my Acer Aspire One 110L netbook, I've tried
 to run it from a USB flash drive and have noticed the following problems
 (I have also tried the 5.1 release and an earlier snapshot, they showed
 the same problems):
 
 Sometimes the touchpad doesn't work (the two buttons work, but the
 cursor doesn't move), unfortunately this doesn't seem to be reproducible
 and can only be fixed by rebooting. Disabling and re-enabling the
 touchpad via the function keys doesn't help either, although they work
 fine if the touchpad already works. I attached dmesg and Xorg log files
 for both cases.

This bug is known, but I haven't tried the last snapshots on the
netbook.

 
 Is the ath driver supposed to work with this chipset? If I try
 connecting to a network I get the following error in dmesg:
 ath0: unable to reset hardware; hal status 3523306684
 ath0: unable to reset hardware; hal status 4120431260
 

The atheros card is not supported. Buy a cheap nano wireless adapter
with a chipset supported.

 Both SD card readers only work if an SD card was already inserted at
 boot time. Otherwise the following error occurs:
 
 sdmmc0 at sdhc0
 JMicron Memory Stick rev 0x00 at pci1 dev 0 function 3 not configured
 JMicron xD rev 0x00 at pci1 dev 0 function 4 not configured
 sdmmc0: can't enable card
 JMicron SD/MMC rev 0x00 at pci4 dev 0 function 0 not configured
 sdhc1 at pci4 dev 0 function 2 JMicron SD Host Controller rev 0x00:
 apic 4 int 19
 sdmmc1 at sdhc1
 JMicron Memory Stick rev 0x00 at pci4 dev 0 function 3 not configured
 JMicron xD rev 0x00 at pci4 dev 0 function 4 not configured
 sdmmc1: can't enable card 
 

I haven't tried the card reader.

 Is there any PCI hotplug support in OpenBSD or another possibility to
 make them work without inserting an SD card at boot time?
 
 
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Calomel.org

2012-07-27 Thread Juan Francisco Cantero Hurtado
On Thu, Jul 26, 2012 at 05:36:38PM +1000, David Diggles wrote:
 The calomel phenomenon is fascinating!
 
 I was calomeled.
 
 Those who have been calomeled have done the following:
 
 1. lazily google: openbsd tuning (or similar)
 2. click on: Network Tuning and Performance Guide (OpenBSD) - Calomel
(currently ranked 2 on google)

Calomel is ranked 2 on google because it has been linked several hundred
times from this list. Google doesn't know about good/bad opinions or
flamewars. Google only cares about the reputation of the origin of the
link.

Also tens of mailing list archives include the links. So, the OpenBSD
community is the SEO of Calomel. Ironic but true.

 3. lazy and in a hurry to get it working, apply stuff from calomel
 4. lazily email misc without first searching marc.info, referring
to the calomel recipe and asking further questions
 
 While calomel has the high rank in google, this keeps repeating.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: man pages with screen reader

2012-07-30 Thread Juan Francisco Cantero Hurtado
Try this on your ssh session:

m a n space minus c space afterboot

With the minus c option, the man program doesn't use more and
shows the full man page.  I guess that this behavior is better for your
screen reader because it only needs take into account the scroll of your
terminal.

On Sun, Jul 29, 2012 at 12:19:42PM -0700, Eric Oyen wrote:
 well, the simple ASCII text isn't the problem. its the interface over which I
 am viewing it (ssh using vt200). every time I navigate up or down in a man
 file, the session redraws the screen and that forces the screen reader to read
 from the first line or simply read the last line (whichis the --more: at the
 bottom). that and some of the extended attributes (bold face, etc.) may not be
 read correctly by the screen reader on my end of the ssh session.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: OpenBSD Cloud Offerings

2012-11-28 Thread Juan Francisco Cantero Hurtado
On Tue, Nov 27, 2012 at 11:47:13AM -0500, Research wrote:
 Hello,
 
 I was wondering if anyone had any experience with reputable cloud providers 
 that currently offer OpenBSD 5.2.
 
 I was able to find out some information based on the OpenBSD Journal posting 
 from Sunday, February 13, 2011 titled OpenBSD Private Cloud Computing.  The 
 two vendors mentioned included ARP Networks and RootBSD.
 
 Since this time period (preferably over 2012), has anyone used any other 
 cloud service offerings hosting OpenBSD ?  I am hoping to hear some positive 
 reviews for a provider I can go with.
 
 Stipulations
 
 - Preferable a North American provider for geography
 - OpenBSD 5.2
 
 Thanks

Just a side note to the other comments.

If you want use the VM for to compile software 24/7, ask to the provider
before of pay for some plan. Some providers consider this a bad use of
their servers and will cancel your account.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Xfce4 and ctrl:swapcaps not working

2012-12-20 Thread Juan Francisco Cantero Hurtado
On Wed, Dec 19, 2012 at 02:49:12PM -0800, Raymond Lillard wrote:
 Hello Misc,
 
 I am running -current (amd64) on a Lenovo w500.
 
 I start Xfce4 from the command line with startx.  I have
 added:
   exec /usr/local/bin/startxfce4
 to ~/.xinitrc.
 
 Everything comes up nicely, but I cannot swap the Control_L
 and CAPS_LOCK automatically at startup.
 
 I can swap them from an xterm command line using
   setxkbmap -option ctrl:swapcaps
 and
   xmodmap ~/.Xmodmap
 Both of these methods do work, but I want it to happen
 automatically when I launch X.

Add the setxkbmap command to .xinitrc above startxfce4.

Also, remove the settings related to the layout of your keyboard in the
settings of xfce4.

 
 I have gone to the Session and Startup dialog and
 created an entry for the setxkbmap command method.
 The command executes and returns 0.
 
 I have added:
   XKBOPTIONS=ctrl:swapcaps
 to /etc/default/keyboard.  This doesn't work either.
 
 I have instrumented /etc/xdg/xfce4/xinitrc to verify that
 
   # load local modmap
   test -r $HOME/.Xmodmap  xmodmap $HOME/.Xmodmap
 
 in that file is executed and returns 0
 
 Googling finds the solutions described above. These aren't
 working for me.  At this point I am out of ideas.  I am
 resisting writing an xorg.conf file.  Am I down to that?
 
 Clue sticks gladly accepted.
 
 Thanks to all,
 Ray

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: OT: mailing list unix programming

2012-12-26 Thread Juan Francisco Cantero Hurtado
On Wed, Dec 26, 2012 at 08:24:43PM +0100, Jérémie Courrèges-Anglas wrote:
 Friedrich Locke friedrich.lo...@gmail.com writes (about 
 comp.unix.programmer):
 
  It is a newsgroup, not a mailing list.
 
  What news client do you suggest in order to access it?
 
 I use Gnus (a newsreader and more, integrated into Emacs).  But
 take a look at /usr/ports/news.  trn, slrn, etc
 
 There are web gateways, like google groups, but they generally suck at
 anything but reading a few posts here and there.
 

Thunderbird also supports nntp.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: ext2fs read errors

2012-12-30 Thread Juan Francisco Cantero Hurtado
On Sun, Dec 30, 2012 at 05:46:54PM +0100, Martijn van Duren wrote:
 Martijn van Duren schreef op zo 30-12-2012 om 17:15 [+0100]:
  I also found an old threat[1] where they say they have a patch for
  accessing ext2 partitions with a different inodesize then 128, although
  I can't find any information of what ever happened with that patch.
  
 On some further investigation I found that big inodesizes have indeed
 been implemented.[1][2][3] This explains why I can mount the filesystem
 and use most of the files, but doesn't answer my question where the read
 request go haywire or how I can actually debug this issue myself. (I
 don't know how to debug/trace read(2), so it would be highly appreciated
 if someone can explain me how to do this, or point me to the
 documentation that explains me how to do this.)
 
 [1]http://www.openbsd.org/cgi-bin/cvsweb/src/sys/ufs/ext2fs/ext2fs_dinode.h#rev1.11
 [2]http://www.openbsd.org/cgi-bin/cvsweb/src/sys/ufs/ext2fs/ext2fs_inode.c#rev1.43
 [3]http://www.openbsd.org/cgi-bin/cvsweb/src/sys/ufs/ext2fs/ext2fs_vfsops.c#rev1.51

I've a ext3 partition and use this on OpenBSD each day. I don't know the
inodesize of my partition, but I used the defaults for create it
approximately a year ago.

Can you run a fsck pass to the partition on Linux? Maybe something is
wrong.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: ralink 3072 not showing up

2013-01-03 Thread Juan Francisco Cantero Hurtado
On Thu, Jan 03, 2013 at 04:36:03PM +0100, Zoran Kolic wrote:
 After some problems with rsu dongle, I got brand new
 Tenda w326u, which is ralink 3072 device, running from
 usb adapter. To my surprise, it does not show up as
 run or rum, but as umass0. My best guess is that it
 should work like a charm.
 What else happened? Well, if I put in into the laptop,
 it does not boot. I assume all needed drivers are already
 installed as part of base system. What additional info
 I might provide further? Dmesg is the same as in:
 http://marc.info/?l=openbsd-miscm=135679558207507w=2
 Best regards
 

The dmesg isn't the same. You need share other dmesg *with* the devices
connected.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: How to build GNUstep programs on OpenBSD?

2013-01-21 Thread Juan Francisco Cantero Hurtado
On Mon, Jan 21, 2013 at 11:30:50PM +0800, Salil Wadnerkar wrote:
 Hi,
 
 I am trying to build a GNUStep program on OpenBSD. I installed packages
 gnustep-base, gnustep-make
 
 main.m
 
 #import Foundation/Foundation.h
 
 int main(void)
 {
 
 NSLog(@Hello World!);
 return 0;
 }
 
 
 GNUmakefile
  include $(GNUSTEP_MAKEFILES)/common.make
 TOOL_NAME = main
 main_OBJC_FILES = main.m
 include $(GNUSTEP_MAKEFILES)/tool.make
 
 Then, I initialize the GNUstep environment using
 . /usr/local/GNUstep/Makefiles/GNUstep.sh
 
 And then I run:
 make
 
 This does not recognize the GNUmakefile.
 
 Does anybody know how I can build a GNUstep program on OpenBSD?
 On my Arch Linux installation, similar procedure works fine.
 
 Thanks
 Salil

Try make -f GNUmakefile. If this command fails, install gmake and try
gmake -f GNUmakefile.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Legal Question: OpenBSD Spin-off

2013-02-09 Thread Juan Francisco Cantero Hurtado
On Sat, Feb 09, 2013 at 11:46:58AM -0600, Crookedmaze wrote:
 Hello Everyone!,
 
 I am creating an OpenBSD Spin-off and have a question about what the
 rules are regarding doing something like this. I have looked at the
 OpenBSD copyright page and it looks like doing so would be alright
 but I would like to be sure that what I am doing is alright. I
 do not necessarily aim to create a new OpenBSD based operating system
 what I plan to do is to create my own spin-off off OpenBSD that comes
 configured to function as a server for a game called Minecraft,
 and comes with things like OpenJDK (required to run Minecraft), but it
 will still be OpenBSD it will just have a slightly different default
 configuration. Would the people using my spin-off be allowed to use
 the OpenBSD package repositories to install packages and update them.
 What I am trying to do is setup an OpenBSD spin-off that is setup to be a
 secure Minecraft server, because right now many of the people who setup
 Minecraft servers in their home run their servers on their personal
 computers using Windows 7 or Vista and the server is usually running
 as the administrative user. So what I would like to do is distribute
 an OpenBSD Spin-off that is configured as a Minecraft server
 that these people who are not very skilled can use (It will be highly
 scripted and automated) and can run in Virtualbox or can be installed
 on a dedicated server, I know this won't be as secure as a managed
 server and I also know that security is a process not something you can
 download but my goal is to setup something that will hopefully be more
 secure than what most people are doing right now I am also doing this
 because hopefully if people were to start using my Spin-Off of OpenBSD
 then maybe more people will take an interest in OpenBSD.
 Please let me know if this would be an OK thing to do. Also
 feel free to comment on my idea and let me know what you think!
 
 P.S. This is the first time I have ever posted to the OpenBSD misc
 mailing list I have done my best to conform to the OpenBSD Mailing list
 Netiquette guidelines, but please let me know if I have
 done something incorrectly,
 
 Sincerely,
 Crookedmaze

The licenses of OpenBSD *base* allow you to distribute appliances but
you should check the licenses of each package included in your project.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: apue : for openbsd : which edition?

2013-02-10 Thread Juan Francisco Cantero Hurtado
On Sun, Feb 10, 2013 at 01:00:50AM -0500, Mayuresh Kathe wrote:
 hello, may i know which would be the most suitable
 edition of 'apue' (1st or 2nd) to learn more about
 programming services under openbsd?
 thanks.

http://article.gmane.org/gmane.os.openbsd.misc/197135

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Precisions on ZFS (was: Millions of files in /var/www inode / out of space issue.)

2013-02-21 Thread Juan Francisco Cantero Hurtado
On Thu, Feb 21, 2013 at 05:15:35PM -0500, Bryan Horstmann-Allen wrote:
 I apologize this is off-topic, but I'm somewhat close to the illumos project
 and would like to correct a few things.
 
 +--
 | On 2013-02-21 22:12:45, Jeremie Le Hen wrote:
 | 
 |  So, long story short, I do not see any option to use ZFS on a free system.
 
 This is not correct, as Jeremie notes below. Here's some delicious pudding
 proof, though.
 
 https://github.com/illumos/illumos-gate/tree/master/usr/src/uts/common/fs/zfs
 
 There is zero reason not to have ZFS in a free system. Consider its inclusion
 in FreeBSD.
 
 (I can't really imagine its inclusion in OpenBSD, though. License arguments 
 are
 incredibly boring, but it just doesn't seem at all likely.)

The problem with licenses is different between FreeBSD/NetBSD/Linux and
OpenBSD. FreeBSD uses a extra layer for compatibility with opensolaris
and they have support for loadable kernel modules. NetBSD uses a similar
approach.

ZFS on Linux uses FUSE, I don't know if they also use a extra layer for
compatibility with opensolaris.

OpenBSD doesn't have support for loadable kernel modules or FUSE, so
OpenBSD should include the code inside of the kernel. This is a big
difference with FreeBSD/NetBSD/Linux.

Also FreeBSD had adapted their kernel for the peculiarities of ZFS. Did
you try the first version of FreeBSD with ZFS?. The performance was
horrible.

Here in the BSD world, we have HAMMER, a good alternative with a license
compatible and a reasonable requirements.

If ZFS had a license compatible, the problem would be the same of
HAMMER, someone should do the job. I think the most of OpenBSD
developers already have a to-do big enough 

  
 | There are two versions of ZFS: Oracle's ZFS in Solaris 11 and the other
 | ZFS, which is the open-source evolution of the latest ZFS from
 | OpenSolaris.  This open-source version is mainly developped within
 | IllumOS, which can be considered as the OpenSolaris heir and  is backed
 | by the Nexenta company.  Two others companies, Joyent and Delphix, also
 | hired former Sun Solaris developers and are putting some efforts in it.
 
 This is also slightly incorrect. illumos (not IllumOS) is not backed by
 Nexenta. illumos is an open source project that Joyent, Delphix and Nexenta 
 all
 contribute to. To date:
 
 Joyent's major contributions to illumos include ZFS Write I/O Throttle and a
 port of the Linux KVM hypervisor.
 
 Delphix recently upstreams ZFS feature flags, making ZFS versions more
 portable.
 
 Nexenta's contributions tend to come in the form of HBA driver work, as that's
 their business model (storage).
 
 All companies provide bug fixes of various sorts as well.
 
 The number of non-employee contributors is small, but exists. There is a lot 
 of
 legacy in the build system, so writing code and running builds is somewhat
 non-trivial.
 
 illumos is the core OS and utilities, similar to the OS/NET source
 distributions if you're familiar with Solaris development.
 
 Or like kernel.org, if you like. (The kernel plus other stuff (like ZFS).)
 
 illumos is what you use to build illumos-based distributions, like SmartOS,
 OmniOS, or OpenIndiana.
 
 | FreeBSD basically pulls the changes from IllumOS regurlarly.  A handful
 | of bugfixes did go in the other direction though, but not that much.
 | IIRC, I've also seen one or two bugfixes committed into FreeBSD that
 | came from ZFS On Linux.
 
 illumos has seen some bug fixes from the FreeBSD folks, as you mention, but
 they are primarily a consumer still. (Love seeing ZFS and DTrace on FreeBSD!)
 
 zfsonlinux is developed by LLNL, and is core to their supercomputing
 infrastructure. My experience with it has been pretty solid over the last 
 year.
 
 Cheers.
 -- 
 bdha
 cyberpunk is dead. long live cyberpunk.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Millions of files in /var/www inode / out of space issue.

2013-02-21 Thread Juan Francisco Cantero Hurtado
On Tue, Feb 19, 2013 at 07:41:11AM -0500, Nick Holland wrote:
 On 02/19/13 05:47, MJ wrote:
  Which app are you running that is generating millions of tiny files
  in a single directory?  Regardless, in this case OpenBSD is not the
  right tool for the job. You need either FreeBSD or a Solaris variant
  to handle this problem because you need ZFS.
  
  
  What limits does ZFS have? --- 
  The limitations of ZFS are designed to be so large that they will
  never be encountered in any practical operation. ZFS can store 16
  Exabytes in each storage pool, file system, file, or file attribute.
  ZFS can store billions of names: files or directories in a directory,
  file systems in a file system, or snapshots of a file system. ZFS can
  store trillions of items: files in a file system, file systems,
  volumes, or snapshots in a pool.
  
  
  I'm not sure why ZFS hasn't yet been ported to OpenBSD, but if it
  were then that would pretty much eliminate the need for my one and
  only FreeBSD box ;-)
 
 The usual stated reason is license, it is completely unacceptable to
 OpenBSD.
 
 The other reason usually not given which I suspect would become obvious
 were the license not an instant non-starter is the nature of ZFS.  As it
 is a major memory hog, it works well only on loaded 64 bit platforms.
 Since most of our 64 bit platforms are older, and Alpha and SGI machines
 with many gigabytes of memory are rare, you are probably talking an
 amd64 and maybe some sparc64 systems.
 
 Also...see the number of ZFS Tuning Guides out there.  How...1980s.
 The OP here has a special case use, but virtually all ZFS uses involve
 knob twisting and experimentation, which is about as anti-OpenBSD as you
 can get.  Granted, there are a lot of people who love knob-twisting, but
 that's not what OpenBSD is about.
 
 I use ZFS, and have a few ZFS systems in production, and what it does is
 pretty amazing, but mostly in the sense of the gigabytes of RAM it
 consumes for basic operation (and unexplained file system wedging).
 I've usually seen it used as a way to avoid good system design.  Yes,
 huge file systems can be useful, but usually in papering over basic
 design flaws.

If you don't like the RAM consumption of ZFS for basic operations,
enable the deduplication. You will cry like a baby :D

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Precisions on ZFS (was: Millions of files in /var/www inode / out of space issue.)

2013-02-21 Thread Juan Francisco Cantero Hurtado
On Thu, Feb 21, 2013 at 10:54:58PM -0430, Andres Perera wrote:
 On Thu, Feb 21, 2013 at 9:59 PM, Juan Francisco Cantero Hurtado
 i...@juanfra.info wrote:
 
  OpenBSD doesn't have support for loadable kernel modules or FUSE, so
  OpenBSD should include the code inside of the kernel. This is a big
  difference with FreeBSD/NetBSD/Linux.
 
 lkm(4) is outdated with wrong information about a feature no longer present?

My fault :)

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Precisions on ZFS (was: Millions of files in /var/www inode / out of space issue.)

2013-02-22 Thread Juan Francisco Cantero Hurtado
On Fri, Feb 22, 2013 at 04:22:51AM -0500, Jiri B wrote:
 On Fri, Feb 22, 2013 at 03:29:21AM +0100, Juan Francisco Cantero Hurtado 
 wrote:
  OpenBSD doesn't have support for loadable kernel modules or FUSE, so
  OpenBSD should include the code inside of the kernel. This is a big
  difference with FreeBSD/NetBSD/Linux.
 
 http://www.openbsd.org/cgi-bin/cvsweb/src/sys/conf/GENERIC?rev=1.193;content-type=text%2Fplain
 option  LKM   # loadable kernel modules
 
 It does have LKM (kqemu used it) but not using it by default.
 
 jbelka

I didn't know about lkm before of the mail of Andres. I never needed
extra modules.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Thread-local storage support on OpenBSD?

2013-02-25 Thread Juan Francisco Cantero Hurtado
Hi. Just a quick question. Is thread-local storage support on GCC 4.2 or
Clang in the roadmap of some developer or nobody is interested?. I'm
asking because I don't know if I can trust the TLS support of GCC 4.6.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Thread-local storage support on OpenBSD?

2013-02-26 Thread Juan Francisco Cantero Hurtado
On Mon, Feb 25, 2013 at 08:22:17PM -0800, Philip Guenther wrote:
 On Mon, Feb 25, 2013 at 5:50 PM, Juan Francisco Cantero Hurtado
 i...@juanfra.info wrote:
  Hi. Just a quick question. Is thread-local storage support on GCC 4.2 or
  Clang in the roadmap of some developer or nobody is interested?
 
 Yes, it's on my todo list.  One tricky part is the variance across
 architectures in compiler and tool-chain support for the necessary
 relocations.

Sorry for the unnecessary question. I saw your todo list in the rthreads
slides just after of send the mail :)

 
 
  I'm asking because I don't know if I can trust the TLS support of GCC 4.6.
 
 Trust?  Until ld.so, libpthread, and crt0.o (for static executables)
 provide the necessary support, it doesn't matter what the compiler
 does.

GCC 4.6 has emulated TLS support but this only give me more problems.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Thread-local storage support on OpenBSD?

2013-02-26 Thread Juan Francisco Cantero Hurtado
On Mon, Feb 25, 2013 at 09:08:37PM -0800, Matthew Dempsky wrote:
 There's certainly interest in supporting ELF TLS (i.e., the __thread and
 thread_local storage classes), but it's going to require some more work
 still.
 
 I'm not familiar with GCC 4.6's TLS support in specific, but unless it
 compiles to calls to pthread_{get,set}specific(), etc (which I don't think
 it does), it's not going to work on OpenBSD.

This is emulated. Apparently the emulation also works in targets without
threads support. http://gcc.gnu.org/ml/gcc/2008-12/msg00108.html

I don't know if GCC 4.6 uses those calls on OpenBSD. The problem is TLS
seems work but it doesn't.

 
 On Mon, Feb 25, 2013 at 5:50 PM, Juan Francisco Cantero Hurtado 
 i...@juanfra.info wrote:
 
  Hi. Just a quick question. Is thread-local storage support on GCC 4.2 or
  Clang in the roadmap of some developer or nobody is interested?. I'm
  asking because I don't know if I can trust the TLS support of GCC 4.6.
 
  Cheers.
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: OpenBSD as NAS

2013-03-29 Thread Juan Francisco Cantero Hurtado
On Fri, Mar 29, 2013 at 10:24:20AM +0800, Alan Cheng wrote:
 I did this on a similar hardware (Atom d525 + 4G + 100M LAN + 1 SATA2
 drive) a few weeks ago with OpenBSD AMD64 snapshot, but now I switched to
 Ubuntu due to file copy performance issue. I can get around 10MB/s on
 OpenBSD, but around 20MB/s with Ubuntu on the same hardware.
 
 One major difference here: my NAS is not for disaster, it's simply for file
 sharing.  All data is  back'ed up somewhere else. It's also my wireless AP,
 btw.
 
 I'll be glad to know if there is any tips/advices to get better file copy
 speed on a OpenBSD NAS.

Mount partitions with options: noatime, softdep. man 8 mount.

Increase the value of kern.bufcachepercent and kern.maxvnodes. Read
section 14 in FAQ.

Both increase reading and writing speed in some situations.

 
 
 On Thu, Mar 28, 2013 at 11:03 PM, Jan Lambertz 
 jd.arb...@googlemail.comwrote:
 
  Hi there,
  to be prepared for storage desaster i am planning to upgrade my home
  box.itis a intel atom d525 with 2gig mem. Im planning to build up a
  small raid 10
  with standard sata 5.25 inch drives. 1000 mbit lan. This storage will
  mainly be used for samba shares, backups and nfs shares. Of course i want
  massive performance. What du you suggest ?
  Change cpu
  Change filesystem (os)
  Parameters ?
  Do something other ?
  Any experiences in read /write speed of this hardware ?
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: py-gtksourceview package or port

2013-04-08 Thread Juan Francisco Cantero Hurtado
On Mon, Apr 08, 2013 at 08:56:59PM -0300, Mate Cocido wrote:
 Hi,
 
 To run a X application I need the old py-gtksourceview package or port.
 I found a Git repo that have the old port, but maybe is better
 understand why this package/port has been removed (or maybe has been
 replaced?).
 

http://www.openbsd.org/cgi-bin/cvsweb/ports/x11/py-gtksourceview/Attic/Makefile

Remove some gnome2 oldies that nothing uses in-tree anymore.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Blocking traceroute

2013-04-18 Thread Juan Francisco Cantero Hurtado
On Thu, Apr 18, 2013 at 10:35:53PM -, fek...@tormail.org wrote:
 I want to create a Tor hidden server, which people SSH into over Tor.
 Users could discover the IP server by running traceroute. To stop this I
 have added a simple rule to pf.conf based off helping traceroute.
 Otherwise they could just build or run their own binary traceroute.
 
 block on em0 inet proto udp to port 33433  33626
 
 This appears to work, but couldn't traceroute be built to use other UDP
 ports? Perhaps I should block all UDP ports, it is no big loss really.
 
 Is there anything else I should take into consideration when trying to
 prevent a server from being discovered? The server will be behind a NAT
 with only a LAN address.
 

Tor is a TCP-only network. UDP will never work.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Xephyr bug with Firefox

2013-04-22 Thread Juan Francisco Cantero Hurtado
On Sun, Apr 21, 2013 at 04:12:59PM -0700, Robert Connolly wrote:
 Hello.
 
 I use Xephyr with Firefox. I also run Firefox as a dedicated user.
 At seemingly random times, but on a regular basis, Firefox will
 behave oddly. Firefox will open links in a new window, scrolling up
 or down with my touchpad will cause the tab to go forward or
 backward through browser history, and sometimes capslock will be on
 when typing in Firefox, even though capslock is off.
 
 Restarting Firefox does not fix these issues, but restarting Xephyr
 does. These issues typically happen when Firefox has been loaded and
 idle for many hours, although once it happened after only being
 loaded for a few minutes.
 
 I'm guessing this is a memory corruption bug. Could any of you try
 to reproduce this bug, and could any of you suggest some simple ways
 (simple like strace) of debugging this? I would like to have

I can't help with your bug but ktrace(1) is the equivalent to strace.

 something concrete to report to the Xephyr folks so that it gets
 fixed quickly.
 
 I am running a recent snapshot on an AMD64 with 6GB of memory. I
 have no other problems with other software, so I think I can rule
 out damaged hardware.
 
 Thanks
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: OT: term hackathon trademarked in Germany

2013-05-07 Thread Juan Francisco Cantero Hurtado
There is a new update.

The attempt to take revenue for non-commercial purposes on a licensing
model failed.
[...] we will delete the trademark hackathon.

http://www.young-targets.com/free-licences/


On Tue, May 07, 2013 at 10:49:27PM +0200, Peter N. M. Hansteen wrote:
 A bit late to the party, but here's my take on the situation - 
 
 http://bsdly.blogspot.ca/2013/05/the-term-hackathon-has-been-trademarked.html
 
 - Peter
 -- 
 Peter N. M. Hansteen, member of the first RFC 1149 implementation team
 http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
 Remember to set the evil bit on all malicious network traffic
 delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: xenocara cvs /base/xenocara

2013-06-02 Thread Juan Francisco Cantero Hurtado
On Sun, Jun 02, 2013 at 05:16:19PM -0700, sh...@lavabit.com wrote:
 I am trying to find information about what /base/xenocara/meta is for and
 how it compares to what's in CVS. Using -stable, I am trying to figure out
 if I should build /meta/xenocara or if I should use what is in cvs for
 running X. Where can I find info to understand how they distinguish from
 each other?

This is the reason for xenocara in ports directory:
http://www.openbsd.org/papers/eurobsd2012/espie-dpb/mgp00035.html

Search dpb xenocara in the mailing lists.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Still looking for 1U servers in western canada.

2013-06-11 Thread Juan Francisco Cantero Hurtado
On Tue, Jun 11, 2013 at 01:18:23AM +0200, Marc Espie wrote:
 On Mon, Jun 10, 2013 at 03:21:36PM -0600, Bob Beck wrote:
  I'm still looking for 1U servers in western canada. we have an
  opportunity to build a better build infrastructure for ports but need
  the gear to do it with.
  
  I would be keenly interested in
  
  1) Workable semi-modern amd64 capable intel hardware, 1U - 4 GB of ram
  or more is nice,  One disk drive. (more is nice too).  needs a working
  serial port for serial console,
  Would be very nice to get 10 or so of these for parallel dpb infrastructure
 
 Note that, currently, it's better to have MORE smaller machines (2/4 cpu)
 than big ones. Until we get better SMP support...

I guess that various tens of RAM will be also a big help for dpb when
tmpfs is ready, right?

 
 Our NFS support is probably going to peak around 8 boxen, for now.
 
 Having those boxes would really really help VFS people and SMP people get
 a better idea of the contentions dpb faces...

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: goaccess 0.5

2013-07-09 Thread Juan Francisco Cantero Hurtado
On Wed, Jul 10, 2013 at 12:01:11AM +0300, Tony Berth wrote:
 is anyone using goaccess 0.5 with 5.2 or 5.3?
 
 When running './configure' I get:
 
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... ./install-sh -c -d
 checking for gawk... no
 checking for mawk... no
 checking for nawk... no
 checking for awk... awk
 checking whether make sets $(MAKE)... yes
 checking for gcc... gcc
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ISO C89... none needed
 checking for style of include used by make... GNU
 checking dependency style of gcc... gcc3
 checking for pkg-config... /usr/bin/pkg-config
 checking pkg-config is at least version 0.9.0... yes
 checking for GLIB2... yes
 checking for refresh in -lncurses... yes
 checking for new_menu in -lmenu... yes
 checking for g_free in -lglib-2.0... no
 configure: error: glib-2.x is missing

CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: goaccess 0.5

2013-07-12 Thread Juan Francisco Cantero Hurtado
On Friday 12 July 2013 19:33:13 Kirill Bychkov wrote:
 On Fri, July 12, 2013 16:03, Tony Berth wrote:
  did export CPPFLAGS and LDFLAGS and did follow in '
  http://goaccess.prosoftcorp.com/faq' the section 'How to build
  GoAccess 0.4.2 on OpenBSD 4.8-current'. I did the modification in
  'parser.c' but in 'util.c', 'sys/socket.h' was already included.
  Probably a change in version 0.5?
  Unfortunately, 'configure' gives the same error. Should I send you
  the config.log too?
  
  Thanks

Use the Kirill's port. Anyway, I don't have errors compiling goaccess by 
hand (OpenBSD-current).

 
 Hi. Take a look at http://cvs.linklevel.net/index.cgi/ports/www/
 

Kirill, Can you commit the port?. It is useful and pretty.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: cvs -z compression to reduce network traffic

2013-07-17 Thread Juan Francisco Cantero Hurtado
On Tue, Jul 16, 2013 at 09:25:34PM -0500, Amit Kulkarni wrote:
 Hi,
 
 Are the various cvs mirrors allowing compression? I tried with cvs -z 5. I
 currently sync from anoncvs3.usa and I think it doesn't, atleast the option
 of tcpdump -A didn't show me any decompression activity, just ssh packets
 being sent. top also didn't show any unzip or tar in the -I option
 
 If any mirror admin allows compression, please let me/us know. If they are
 willing to publicize the allowed compression level, please put in the list
 of cvs mirrors page!
 
 Syncing to src, ports, xenocara wastes many MB per month per person...and
 any help would be appreciated to cut down network traffic. I would be
 willing to be test this if it is not enabled currently, and a cvs server
 admin would like to enable it and check the load.
 
 thanks in advance

I use stuart's and nick's tricks almost daily. cvsync for everything
except when I break something in some port, in this case I just update
the directory from the cvs.

Probably other good option in your situation is to use a git or
mercurial mirror. Both are very efficients in the network use. The
problem is the public git mirrors are managed by people external to the
project (and sometimes converted with broken tools).

I did some tests some weeks ago with git-cvs and hg convert but IIRC
both use a lot of RAM. My intention was to run a public mirror of ports,
src and xenocara but I can't ask for a server with so many RAM to some
sponsor for a mostly useless project.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Java on OpenBSD 5.3

2013-07-19 Thread Juan Francisco Cantero Hurtado
On Fri, Jul 19, 2013 at 08:37:40PM +, openda...@hushmail.com wrote:
 On 19. juli 2013 at 3:17 PM, Matthew Dempsky matt...@dempsky.org wrote:
 
 write error?  Did you run out of disk space?
 
 Nope, plenty of disk space left in /usr/local (my ports are in 
 /usr/local/ports).
 
 % df -h

Check also the output of df -i.

 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/wd0a  985M   50.8M885M 5%/
 /dev/wd0k  9.2G434M8.3G 5%/home
 /dev/wd0d  1.5G   12.0K1.5G 0%/tmp
 /dev/wd0f  1.8G404M1.3G24%/usr
 /dev/wd0g 1005M192M763M20%/usr/X11R6
 /dev/wd0h  3.7G1.8G1.7G52%/usr/local
 /dev/wd0j  2.0G2.0K1.9G 0%/usr/obj
 /dev/wd0i  1.3G2.0K1.3G 0%/usr/src
 /dev/wd0e  2.4G   77.5M2.2G 3%/var
 
 O.D.
 
 
 On Fri, Jul 19, 2013 at 7:55 AM, openda...@hushmail.com wrote:
 
  Hi,
 
  Anybody managed to build /usr/ports/devel/jdk on OpenBSD 5.3?
 
  Getting a rather nasty compile error here on amd64, was 
 wondering if maybe
  someone could help? Tried asking on the ports mailinglist as 
 well as
  reaching out to the port maintainer but no luck.
 
  http://pastie.org/8155843
 
  O.D.
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: How does one use adduser in OpenBSD (stuck inEnter username[] loop)?

2013-09-14 Thread Juan Francisco Cantero Hurtado
On Sun, Sep 15, 2013 at 02:28:15AM +0200, Jérémie Courrèges-Anglas wrote:
 Jeffrey Walton noloa...@gmail.com writes:
 
  On Sat, Sep 14, 2013 at 7:08 PM, Martin Schröder mar...@oneiros.de wrote:
  2013/9/15 Jeffrey Walton noloa...@gmail.com:
  I wanted to add myself to the sudo group.
 
  man sudo
  It appears to lack information on adding a user (I went through this
  man page before asking the question).
 
  Then, I went to the web and landed on an overflow page (I think its
  the 'meta' site, and not the 'stack' site). That's what took me to
  'adduser'.
 
  man visudo
  I don't know vi. I do known emacs, but its not on this system so I
  can't edit /etc/sudo by hand.
 
 To make things clear: you should always use visudo(8).  It does
 validation on the modified sudoers(5) file.  And just like a lot of
 programs, visudo(8) respects the VISUAL and EDITOR environment
 variables.  So you're not forced to use vi(1), the base system also
 ships with ed(1) and mg(1).

Just to clarify. mg is an emacs-like editor. Every OpenBSD installation
include it by default.

You can run visudo with mg with this command: EDITOR=mg visudo.

 
  I tried to add emacs through pkg_add, but it appears broke. Surely
  emacs has been ported to every *nix system in existence, so its
  baffling (to me) the package manager cannot find it.
 
 I am the emacs package maintainer.  If you encounter problems not
 documented by the README, please send a mail to po...@openbsd.org, with
 a full description.
 
  man adduser
  I tried `adduser jwalton sudo`, and it did not work even though the
  command looks well formed. I got the command from the overflow site.
 
  man group
  Does not appear applicable. I want to add a user to a group, and not
  create or delete groups.
 
 adduser is not a standardized command, you can't expect it to behave the
 same way as it does on some other OSes.  Just stating a fact.
 
  And 'usermod -G sudo jwalton' does not work, either. It errors with
  Can't append group sudo for user jwalton.
 
 $ getent group sudo
 $ # no output
 
 There is no group named `sudo' in the default install, though you can
 add one.  On the other hand, just use visudo(8) and read the bits about
 the wheel group.
 
  This stuff really should not be this hard...
 
 You're on a different OS now, some things stay the same, some change.
 On the plus side the documentation is quite extensive.  Manpages, the
 FAQ and other pieces of information are a big concern here, so make use
 of them.  Have fun.
 
 -- 
 jca | PGP: 0x06A11494 / 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: slow console

2013-09-23 Thread Juan Francisco Cantero Hurtado
On Mon, Sep 23, 2013 at 10:25:36PM +0200, Jan Stary wrote:
 Since some time ago, the text console seems to be very slow.

Since the change to KMS. Linux has the same problem.

 
 For example, a compilation of a TeX file takes very long if run
 just like `tex file.tex'; but when run as 'tex file.tex  /dev/null',
 it gets much faster, presumably by not having to do the textual output.
 Similarly for a lengthy ./configure.
 
 Another manifestation of the difference is when I launch
 a TeX compilation and switch to another X window,
 completely obscuring the xterm where the compilation is happening.
 If I switch right back, I see the compilation has already finished;
 if I stay in the xterm window, it takes forever.
 
 This is happening in both the text console and an xterm,
 with or without running tmux (so I don't think it's tmux's fault).
 
 Why is this and what can I do about it?
 

I use tmux inside of terminator (vte terminal). It's pretty fast. Try
with some vte terminal like terminator, gnome-terminal,
xfce4-terminal...

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: BeagleBone Black cereal

2013-10-03 Thread Juan Francisco Cantero Hurtado
On Thu, Oct 03, 2013 at 11:40:05AM -0400, Nick Holland wrote:
 On 10/03/2013 10:18 AM, Jan Stary wrote:
 Dear BBB users,
 
 I just bought me a BeagleBone Black board,
 and want to install the latest snapshot.
 
 
 Firstly, OpenBSD/beagle is dead,
 replaced by OpenBSD/armv7, right
 
 yep.
 
 
 Secondly, I need a serial cable to connect to the board.
 http://circuitco.com/support/index.php?title=BeagleBone_Black_Serial
 mentions 6pin cables that do not quite look like the serial cable
 I have always used. (The serial cables linked from that page
 are about $20 each - which is about half the price of the board.
 Am I missing something?)
 
 yeah.  $20. :)
 
 keep in mind, for the intended use, you aren't supposed to need the
 serial i/o. OpenBSD isn't the intended use.
 
 The good news is that one serial device will support as many boards
 as you wish to use.  One at a time, of course.
 
 Should the other end of the serial cable
 be the traditional RS-232 connector,
 
 not without an level changing electronics.
 
 or do serial/USB cables also work?
 Specifically, have you succesfully used any
 of the following with the BeagleBone Black?
 
 http://www.digikey.com/product-detail/en/TTL-232R-3V3/768-1015-ND/1836393
 http://www.newark.com/jsp/search/productdetail.jsp?SKU=34M8872
 https://www.sparkfun.com/products/9717
 http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm
 https://www.adafruit.com/products/70
 http://www.adafruit.com/products/954
 http://www.logicsupply.com/products/ss_ttl3vt
 http://dx.com/p/arduino-pl2303hx-to-usb-ttl-upload-download-wire-black-100cm-199553
 http://dx.com/p/ft232-to-usb-ttl-wire-integrated-terminal-cable-for-programmer-black-95cm-203717
 
 Those should all work.
 
 The signals are standard RS232 with a huge exception: they are NOT
 the normal +/- voltage swing of an RS232 chip, instead they are
 0-3.3v, and much more than that will break things.
 
 SO...you either need RS232 line drivers and receivers going to 3.3v
 (which will require a power supply), or use one of the USB-3.3v
 serial do-hickies out there that use the USB power supply.  That's
 easier, really.  So these devices have a USB - serial chip (usually
 made by FTDI) and no other line drivers, leaving the voltage level
 at the 0-3.3v needed for the BBB.
 
 The good news is probably all those devices will work. Apparently,
 FTDI has managed to make a de-facto standard six pin serial
 interface.  IIRC, the Beaglebone Black only uses three pins anyway
 (ground, td, rd).
 
 Curiously, it is enough of a de-facto standard that I had difficulty
 verifying the pinout on the BBB.
 
 I have managed to buy a couple devices that are little boards with a
 six pin connector on one side and a mini-USB on the other.  They
 look cute, and the board provides a crude keying so you can't put
 the board in one way as easily as the other way.  Problem is, in the
 boards I have, the way it plugs in easily is the WRONG way (bending
 the pins can permit it to be directly plugged in, but it's ugly).
 So stick with the types of cables you have listed above -- USB on
 one side, six pin on the other.
 
 Lastly, does the amrv7 platform have its own mailing list?
 As the beagle support is a work very much in progress,
 what is the discussion I should follow?
 
 arm@ would work.
 
 For what it is worth, I have two BBB's attached to a 2x12x12 block
 of wood (that's US wood inches, which translates to around the size
 of a hardbound book), with a five port switch and a seven port USB
 hub and a power strip screwed to it  The BBB's get their power from
 the USB hub

Don't use the USB connector to power the board, you will have problems
in the future. The BBB runs at 550mhz by default. Some drivers of u-boot
(not available yet in the official source code) will check if your board
is connected to the USB port or the real power connector. The driver
won't increase the cpu speed to 1ghz if you're using the USB connector.

Even if our ARM crew implements an OpenBSD driver to select the cpu
speed, the OpenBSD driver can't increase the speed beyond of the limit
imposed by u-boot.

 and the serial device plugs in there (I've mounted the
 serial device to the board and added wires to the BBS's).  Kinda
 silly to be bolting tiny things to a big block like that, 'cept it
 keeps them and their wires under control...
 
 Nick.
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: beaglebone black

2013-10-10 Thread Juan Francisco Cantero Hurtado
On Thu, Oct 10, 2013 at 12:12:59PM +0200, Jan Lambertz wrote:
 Hi Alexey,
 i asked myself same question.
 As i read http://www.openbsd.org/armv7.html - Planned Projects Support
 for USB on BeagleBoard and BeagleBone models.
 Seems there isn't any usb-support yet. Netherless i bought a LevelOne
 USB-0401 (axe AX88178) usb-ethernet card for upcoming support. I also found
 a dmesg where usb-controller seems recognized.
 I want to replace my home router with this solution, therefore two nics are
 needed.
 I`m going to make a try today afternoon.
 

USB isn't supported yet on the BeagleBone Black on OpenBSD (the same for
NetBSD and FreeBSD, IIRC).

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: SSDs in RAID and bio(4)

2013-10-19 Thread Juan Francisco Cantero Hurtado
On Fri, Oct 18, 2013 at 09:04:55PM -0700, Chris Cappuccio wrote:
 Darren Spruell [phatbuck...@gmail.com] wrote:
  I don't have a great deal of experience with SSD disks but was spec'ing
  some systems to use them. We'd be doing RAID on the hosts and I'd prefer
  to have something supported by bio(4) for volume management. Do SSDs
  have any impact on ability to do this? Or can one use the same HW RAID
  controllers for volume management and bio(4) doesn't have to deal with
  any differences? Or do SSDs typically require special RAID controllers?
  
  Looking at Dell R420s and hoping the PERC controller + SSD combination
  will work under bio(4) (although knowing precisely the driver/controller
  would be necessary, I realize).
 
 SSDs mimic the same interface of any hard disk, bioctl doesn't treat them
 any differently than any other disk.
 
 Using them in RAID isn't typically the best idea, if you are worried
 about write failures bringing the disks to a halt. At least, some failure
 modes will affect all SSDs *at the same time* in a RAID configuration
 because the SSDs all receive a similar number of write requests and data.
 
 If the softraid develops TRIM support then you'll get better write performance
 (although if I'm reading right, some modern SSDs use tricks to minimize the
 need for TRIM?)

Yes, the modern SSDs run periodic tasks to reduce the impact of the lack
of TRIM support and to enhance the speed.

 
 I waited until, uhh, now just to use SSDs in server applications. And I'm
 still only counting on them lasting for 2 or 3 years
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: urtwn driver kernel panic

2013-11-08 Thread Juan Francisco Cantero Hurtado
On Sat, Nov 09, 2013 at 12:17:35AM +0400, Alexander Pakhomov wrote:
 Hi!
 ?) my usb wifi adapter probably overheated near cpu fan out
 1) I've got the same symptoms as with Atheros: net hangs, dhclient fails with 
 No buffer space available
 2) I pull usb off and got kernel panic with ddb prompt (page fault). I forget 
 to remember execution address. I know, I am an idiot.
 
 Is it OK to get kernel panic due to USB device bug?
 

Follow this instructions to report correctly your problem:
http://openbsd.org/faq/faq2.html#Bugs

Nobody can help you without the full info.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Looking for HP J6700/J6750 (HPPA) in Spain

2013-11-12 Thread Juan Francisco Cantero Hurtado
Hi. Theo told me HPPA is a funny platform to work in ports. So, I'm
looking for a HP J6700/J6750 (HPPA). The main purpose of the machine
will be ports testing.

If someone can donate and ship one of this machines to Spain, please
contact me off-list. Due to my economic situation I can only accept
shipments from inside of the European Union (the spanish customs charges
too many taxes for the gifts from outside of EU).

Thanks.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Is Soekris OpenBSD friendly?

2013-11-16 Thread Juan Francisco Cantero Hurtado
On Sat, Nov 16, 2013 at 08:27:28AM -0800, Chris Cappuccio wrote:
 Constantine A. Murenin [muren...@gmail.com] wrote:
  
  However, if you don't require solid GigE performance, and are looking
  for just 100Mbps routing throughput for a home-router project, my
  advice is to buy a netbook -- they go for 200 to 250 USD nowadays,
  plus an external USB Gigabit Ethernet adapter is 10 to 20 USD.  Most
  cheap USB Ethernet adapters are supported nowadays, especially on
  OpenBSD.
  
 
 A netbook? USB nic? No, that's junk. Sounds like an unreliable recipe for
 disaster. Why not just get a Soekris 5501 or a similar PC Engines ALIX,
 they can do 100Mbps with the improved vr ethernet driver these days. The PC 
 Engines is $100 USD and has 3 ethernet ports. PC Engines is coming out
 with a new model pcengines.ch/apu.htm that will cost roughly $130-150USD if
 you can wait another 3 or 4 months.
 
 If you don't mind netbooting, you can use a Ubiquiti EdgeRouter Lite for $99.
 The USB isn't supported yet under OpenBSD. There are probably some viable 
 armv7 options these days too that might be less than $100.

I don't recommend armv7 for production. Despite of the big efforts of
some devs, the platform needs a lot of work and testing.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Is Soekris OpenBSD friendly?

2013-11-16 Thread Juan Francisco Cantero Hurtado
On Sat, Nov 16, 2013 at 01:30:28PM +0100, ropers wrote:
 On 16 November 2013 10:05, Constantine A. Murenin muren...@gmail.com wrote:
 
  ...if you don't require solid GigE performance, and are looking
  for just 100Mbps routing throughput for a home-router project, my
  advice is to buy a netbook -- they go for 200 to 250 USD nowadays,
  plus an external USB Gigabit Ethernet adapter is 10 to 20 USD.  Most
  cheap USB Ethernet adapters are supported nowadays, especially on
  OpenBSD.
 
  With a netbook-based OpenBSD router, you'll have a complementary UPS,
  plus a diagnostic display w/ keyboard (alas with no serial), plus a
  fast SSD or HDD that's also included.  And the price is the same as,
  or even lower than, any of the alternatives that would not have any
  such features.
 
  You really can't beat the value by going with a netbook, unless you do
  require 4x 1Gbps, x2, which you aren't going to get with a 600MHz
  Atom-based Soekris, either.
 
 Do all netbooks nowadays allow clamshell operation though (i.e.
 running the thing at full throttle with the lid closed)?

On OpenBSD, yes.

 
 Because a long time ago, I used to own an Apple laptop (not a netbook,
 admittedly) that did NOT allow clamshell operation; it would
 unconditionally go to sleep when you closed the lid – and even though
 there were some published hacks to overrule Apple's choice and make it
 run with the lid closed and only the display off, this was deemed
 risky, because it wasn't clear if in that case heat-buildup under the
 display would become a (screen-melting) issue. I'm not claiming that
 that's a risk you'll run with netbooks these days; I genuinely don't
 know and I'm genuinely asking.
 
 --ropers
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: mongodb

2013-11-26 Thread Juan Francisco Cantero Hurtado
On Tue, Nov 26, 2013 at 04:56:20PM -0500, Jiri B wrote:
 On Fri, Nov 22, 2013 at 04:20:39PM -0600, Amit Kulkarni wrote:
  On Fri, Nov 22, 2013 at 4:18 PM, Chris Smith 
  obsd_m...@chrissmith.orgwrote:
  
   Mentioned previously:
  
   On Tue, Oct 22, 2013 at 12:29 PM, Stuart Henderson s...@spacehopper.org
   wrote:
Note that the mongodb port is currently broken (and has been since
   5.3-ish iirc).
  
   Wondering if mongodb is operational with -current?
  
   No
 
 Excuse my uneducated question but what kind of technical
 problem is causing mongodb to be broken?

BROKEN = broken after rthreads switch

 
 Would be possible to work with upstream to see things
 getting closer to working state?

Feel free to update the port and send the patches to the list :)

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: (5.4-i386) framebuffer console

2013-12-14 Thread Juan Francisco Cantero Hurtado
On Sat, Dec 14, 2013 at 04:46:58PM -0500, Gabriel Guzman wrote:
 On 12/14, Adam Jensen wrote:
  On 12/14/2013 02:57 PM, Gabriel Guzman wrote:
  wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using
  wskbd0
  
  
  Did you get a framebuffer (no X11) console working with a decent resolution
 
 radeondrm0: 1920x1080   
 
  font and [much] more than 25 lines of 80 characters? If so, how did you do
 
 51 lines, 161 characters.
 
  it - what's your recipe?

Update to -current or wait to OpenBSD 5.5.

 
 just boot the machine (: no tweaking required.  
 I guess if it's not working for you, then something is wrong, since I
 didn't have to do anything to get it working on my end.
 
 I haven't tried to adjust the framebuffer settings, or change the
 font as the default is fine for me.
 
 gabe.
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Make CPU use the C2 state

2014-01-12 Thread Juan Francisco Cantero Hurtado
On Sun, Jan 12, 2014 at 05:29:02PM +0100, John Rogers wrote:
 Hi.
 
 I have installed OpenBSD 5.4 on a laptop. So far everything runs fine
 but I have the problem that it runs fairly hot even in idle.
 
 I used to run FreeBSD on it before and it behaved very similar then,
 until I read [1]. Setting performance_cx_lowest=C2 and
 economy_cx_lowest=C2 did wonder to this machine and effectively
 lowered the temperature and fan speed to acceptable levels. My
 understanding is that this uses ACPI to make the processor run in at
 least C2 state which makes it wake up somewhat slower but in general
 decreases power usage.
 
 My question is if I can do something similar with OpenBSD. I've read
 through the source code to acpicpu(4) [2] and it mentions c-states
 here and there, but I'm not used to the OpenBSD kernel source code and
 is unable to tell how I can utilize it.
 
 John
 
 
 [1] https://wiki.freebsd.org/TuningPowerConsumption
 [2] http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/acpi/acpicpu.c?rev=HEAD
 

Try apmd(8).

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Make CPU use the C2 state

2014-01-15 Thread Juan Francisco Cantero Hurtado
On Mon, Jan 13, 2014 at 12:20:27AM -0800, Philip Guenther wrote:
 On Sun, Jan 12, 2014 at 11:16 PM, John Rogers microspar...@gmail.com wrote:
  I'm not an expert on this but my theory is that the problem is not
  that the CPU is running too fast but rather that it is running in a
  high power state, presumably C0. Do you know if apmd adjusts the
  c-state?
 
 C0 is the only state where the CPU does real work; the higher C-states
 only make sense for when the CPU is idle, so your question presumably
 is does the CPU get put into a higher C-state when idle.  Well,
 5.4-current uses the MWAIT instruction for the idle loop when
 available, which uses the C1 state by default.
 
 Have people found 5.4-current to use less power/run cooler since the
 MWAIT change in early October?
 
 The MWAIT instruction can put the CPU into a higher C-state if the CPU
 supports it, but we don't use or expose that yet.  I have no interest
 in adding Yet Another Knob, but maybe making the decision based off
 the existing hw.setperf sysctl would be reasonable and sufficient,
 overloading the range to not just change the speed but also use a
 deeper C-state hw.setperf is smaller, ala
C3 - 0-33
C2 - 34-65
C1 - 66-100
 
 Or maybe that's a bad idea.

The problem is C-states slows down additional components, not just the
CPU speed. Some users only want to change the CPU speed and others want
to increase the battery life of their laptops even if the laptop runs
slightly slower. Inevitably, you will need add also a new sysctl entry
to enable/disable the c-states, something like hw.setperf.c-states.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Help: missing apt-get command after installing OpenBSD.

2014-01-15 Thread Juan Francisco Cantero Hurtado
On Wed, Jan 15, 2014 at 07:33:28PM +0530, Jiya desai wrote:
 Hi,
 
 I am new baby in this world and basically doing little experiment task to
 install apache, perl and foswiki on openbsd
 
 I am using Microsoft Virtual PC .  I downloaded the file OpenBSDinstall54.iso
 and installed OpenBSD.
 
 Now I see that I am not able to get basic commands that i used to get in
 ubuntu world,  like apt-get.
 
 So my question is why apt-get command is not available and what should i do ?
 
 

Run man afterboot and read the manual. We have amazing documentation
for newbies :)

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Request for Funding our Electricity

2014-01-16 Thread Juan Francisco Cantero Hurtado
On Thu, Jan 16, 2014 at 01:10:05PM +0100, Sia Lang wrote:
 Virtual machines/emus and canadian cross builds should be able to reduce
 the amount of iron, no?

Just a side note to the people talking about emulators. Obviously,
you're not tried to install OpenBSD on emulators. Basically, everything
is broken except amd64 and i386.

Feel free to create guides to teaching us how to install each platform
supported on some emulator.

 
 
 On Thu, Jan 16, 2014 at 12:53 PM, Theo de Raadt 
 dera...@cvs.openbsd.orgwrote:
 
  Through the history of openbsd there have been architectures in which
  more bugs have been found and some in which fewer bugs have appeared.
 
  That is not true.
 
  Then maybe the number of bugs for an architecture can be matched to the
  power-on-time for the machines for that architecture.
 
  Maybe.  Probably need them on to prove or disprove the point.
 
  For example, if 1% of the total number of bugs in the history of openbsd
  have appeared on architecture x, then it's likely that it will continue to
  be so, then all the machines for that architecture should be powered on
  just 1% of the time.
 
  Another great advantage here is that all the pesky developers who love
  those machines will go away, and we'll only need to run on the best
  architectures (which of course, are big endian).
 
  Then perform that analysis on all architectures to make a more better use
  of energy. And that's it.
 
  It's so simple.  Why didn't I think of it.
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Power consumption of various architectures

2014-01-19 Thread Juan Francisco Cantero Hurtado
On Sun, Jan 19, 2014 at 01:56:05PM +, Miod Vallat wrote:
  Having used most of the architectures out there,
  can you please say which of them consume most/least power
  in regular operation of OpenBSD, if you have such statistics?
 
 I can't tell for the exact machines Theo is using, but here are a few
 values from my bunker:
 
 - VAX 4000/106 (fast vax, 100MHz processor), quite similar to the one
   Theo is using, two SCSI disks: about 95W.
 
 - Alpha LX164 (2nd generation alpha, 533MHz processor), with a modern (2
   years old) ATX power supply, only one disk: about 85W.
 
 - SGI Fuel (700MHz R16000), original power supply: about 200W.
 
 - 1.4GHz G4 Mac mini: 40W.
 
 - SPARCstation 20, 150MHz RT625 processor, one disk: about 115W.
 
 - Sun Blade 100 (500MHz UltraSPARC-IIe): about 65W.
 
 - HP Visualize B2000 (400MHz PA-RISC): about 130W.
 
 - Lemote Fuloong 2F (800MHz): about 20W.
 
 - Plextor PX-EH160L (landisk): about 15W.

HP PA-RISC J6750 with 2 CPUs, 2 SCSI disks and 2GB of RAM: about 250W

Beagle Bone Black at full speed: 3W

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Power consumption of various architectures

2014-01-20 Thread Juan Francisco Cantero Hurtado
On Mon, Jan 20, 2014 at 05:30:32AM +, Артур Истомин wrote:
 On Sun, Jan 19, 2014 at 09:43:20PM +0100, Juan Francisco Cantero Hurtado 
 wrote:
  On Sun, Jan 19, 2014 at 01:56:05PM +, Miod Vallat wrote:
Having used most of the architectures out there,
can you please say which of them consume most/least power
in regular operation of OpenBSD, if you have such statistics?
   
   I can't tell for the exact machines Theo is using, but here are a few
   values from my bunker:
   
   - VAX 4000/106 (fast vax, 100MHz processor), quite similar to the one
 Theo is using, two SCSI disks: about 95W.
   
   - Alpha LX164 (2nd generation alpha, 533MHz processor), with a modern (2
 years old) ATX power supply, only one disk: about 85W.
   
   - SGI Fuel (700MHz R16000), original power supply: about 200W.
   
   - 1.4GHz G4 Mac mini: 40W.
   
   - SPARCstation 20, 150MHz RT625 processor, one disk: about 115W.
   
   - Sun Blade 100 (500MHz UltraSPARC-IIe): about 65W.
   
   - HP Visualize B2000 (400MHz PA-RISC): about 130W.
   
   - Lemote Fuloong 2F (800MHz): about 20W.
   
   - Plextor PX-EH160L (landisk): about 15W.
  
  HP PA-RISC J6750 with 2 CPUs, 2 SCSI disks and 2GB of RAM: about 250W
  
  Beagle Bone Black at full speed: 3W
 
 How can i find out this numbers? From power block sticker?
 

I use a (good) power meter. Don't buy the cheapest one.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Power consumption of various architectures

2014-01-21 Thread Juan Francisco Cantero Hurtado
On Tue, Jan 21, 2014 at 07:31:14PM +, Christian Weisgerber wrote:
 Juan Francisco Cantero Hurtado i...@juanfra.info wrote:
 
   How can i find out this numbers? From power block sticker?
  
  I use a (good) power meter. Don't buy the cheapest one.
 
 From time to time, c't magazine reviews the cheap wattmeters available
 on the German (~ European) market.  Their latest test, in the
 September 23 issue, revealed a number of models that were eerily
 in agreement with our 3,500-euro reference unit, including the
 cheapest one (10 euros).
 
 But really, any unit you buy is probably good enough.
 

The problem isn't the precision of the numbers, the real problem is the
quality of the build and especially the quality of the circuit. I don't
want to set fire to my house :P

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: The unknown in i386-unknown-openbsd5.4

2014-02-01 Thread Juan Francisco Cantero Hurtado
On Sat, Feb 01, 2014 at 07:11:25PM -0500, Adam Jensen wrote:
 On Sat, 1 Feb 2014 00:52:31 + (UTC)
 na...@mips.inka.de (Christian Weisgerber) wrote:
 
  FreeBSD is more playful: It has ${ARCH}-portbld-freebsd
  ${OSREL} in its ports tree and ...
  
 
 I wonder how the FreeBSD guys changed it without breaking every
 gnu-configure script in existence.

You just need to create a few tens of thousands of patches to fix the
mess and send everything to upstream.

 
 It shows up in so many places, even my email headers:
 
 X-Mailer:Sylpheed 3.2.0 (GTK+ 2.24.20; i386-unknown-openbsd5.4)
 
 To the uninitiated masses, it might seem like the system was
 sloppily configured or in some other way the admin was confused.
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Sluggish text cursor on tmux

2014-02-13 Thread Juan Francisco Cantero Hurtado
On Thu, Feb 13, 2014 at 01:18:38PM +0100, Stefan Sperling wrote:
 On Thu, Feb 13, 2014 at 12:07:00PM +, Zé Loff wrote:
  Hi all
  
  I believe nicm's recent changes to src/usr.bin/tmux/tty-keys.c and
  xterm-keys.c are the cause to what follows, but I have no idea on how to
  handle this...
  
  Since upgrading to Feb 7 -current, when using an editor inside a tmux
  session (occurs at least on vim and sc) the text cursor shows some sort
  of a lag when responding to 'arrow keys'.
 
 I'm seeing this too, in Vim and /usr/bin/vi. The lag is slight, but causes
 me to end up changing the wrong character when trying to do something fast.
 E.g. I noticed it when tyring to switch case of a character with ~.
 
 I didn't know the problem was due to tmux. But indeed, in a plain terminal
 the arrow keys are as responsive as they used to be.
 
 It also made me realise that I do indeed use arrow keys in vi... weird.
 

I had the same issue. I updated from CVS a few days ago and I can't
reproduce the bug.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: ffs2

2014-03-16 Thread Juan Francisco Cantero Hurtado
On Sun, Mar 16, 2014 at 09:53:29PM +0100, carsten.ku...@arcor.de wrote:
  i just want to know how to format a partition in OpenBSD for ffs2 ?
 
 You could have a look in the newfs(8) manpage for the option -O. -O 2 
 should be FFS2.
 

But don't use FFS2 for /. OpenBSD can't boot from FFS2.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Could someone recommend me to me a good AMD Radeon card for 2d?

2014-04-04 Thread Juan Francisco Cantero Hurtado
On Fri, Apr 04, 2014 at 01:50:32AM -0400, guitarfreak wrote:
 Hello all, I was wondering if I could get some recommendations on what the
 best fully supported (by current/impending 5.5 release) AMD Radeon video
 card is?  I'm primarily interested in watching HD video,but 3d acceleration
 is always nice too and I'm looking to future proof as much as possible.  I'm
 a Linux/FreeBSD user interested in switching to OpenBSD for my desktop, but
 made the mistake of buying an NVIDIA card.  Thanks in advance for your time!
 

Don't buy the 4350 model (R710). It has an annoying bug with 720p
videos.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Only two holes in a heck of a long time, but why?

2014-04-04 Thread Juan Francisco Cantero Hurtado
On Fri, Apr 04, 2014 at 07:48:50PM -0400, John D. Verne wrote:
 On Apr 4, 2014, at 18:06, Martin Braun yellowgoldm...@gmail.com wrote:
 
  I used OpenBSD back in the 3.x days,
  
  The last 3.x release was 8 years ago.
  Are you fucking serious?
  
  Yup.
  
  but eventually began using Debian
  because it was much easier to maintain
  
  Can you please give an example of a maintenance task
  that is easier then the comparable/analogous task in OpenBSD?
  Because I remember Debian kinda sucked when I used it in 1998.
  
  apt-get update; apt-get dist-upgrade between versions are pretty awesome.

- Update with the bsd.rd kernel.
- Follow the instructions http://www.openbsd.org/faq/upgrade54.html
- pkg_add -u

  
  Seriously though, the reason for me (and many people apparently)
  to use OpenBSD is the _extreme_simplicity_ of just about anything.
  
  OpenBSD is great to use, but BSD's in general are not simplistic when it
  comes to package management, hence the reason why FreeBSD is developing the
  new pkg tool.. whch is pretty much a clone of what apt does on Debian.
  
  For me I remember when time was spend updating from one OpenBSD version to
  the next. So many hours. Debian was a fantastic relief back then and still
  is. However, this is without comparing security issues, but only talking
  about simplicity.
  
 Modern releases of OpenBSD are pretty easy and fast to update, especially 
 with sysmerge. I used to have a pretty custom setup, and upgrade time wasn't 
 my favourite (and so I skipped many releases...) But it is a lot easier these 
 days.
 
 You don't get precompiled patched kernels, though. This is the part that 
 takes the longest for me (assuming there are patches that require kernel 
 compiles) because my edge box isn't particularly fast. The package updating 
 wasn't much different than running apt-get.

http://www.mtier.org/index.php/solutions/apps/openup/

 
 It seems to me that the difference between Debian and OpenBSD (and I've used 
 both just as recently) is that one you update to reboot, and the other you 
 reboot to upgrade. time and effort seems about the same, these days.
 
 -- jdv
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: xbmc

2014-04-20 Thread Juan Francisco Cantero Hurtado
On Sun, Apr 20, 2014 at 12:08:23PM +0200, Stéphane Guedon wrote:
 Hello
 
 Is there anybody who has successfully set up xbmc on openbsd.
 I do not see any official port in the port tree, but is there a non 
 official ?
 
 Thanks for any answer.

xbmc is really hard to integrate in a port.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Ralink mystery usb mini WiFi adapter

2014-04-21 Thread Juan Francisco Cantero Hurtado
On Sun, Apr 20, 2014 at 10:09:19PM +0200, Benjamin Baier wrote:
 It's Advertised as an EP-N8508.
 It is most likely a rebrand, which uses the rtl8188cus (very low cost chip)
 This should be supported by the urtwn driver.
 Just need to recognize the USB device number.
 In this case it's idVendor 0x148f idProduct 0x7601.

No, 0x148f is Ralink.

 
 This makes me wonder, if there is a method to test this without recompiling
 the kernel.
 With config(8) maybe?
 
 - Ben
 
 On 04/20/14 16:35, Alan Corey wrote:
 I didn't buy Ralink on purpose. I've had issues with other products
 from them and generally prefer Atheros.
 
 If you want, I'll stick it back in its padded envelope and send it to
 you to experiment on. I think I'd like it back someday but if it won't
 work under OpenBSD it's useless.  I hope to know by tomorrow if it
 works under FreeBSD 10 on my Raspberry Pi but otherwise I could only
 use it under Windows. Email me a snail mail address if you want it.
 
 On 4/20/14, Stefan Sperling s...@openbsd.org wrote:
 On Sat, Apr 19, 2014 at 10:23:06PM -0400, Alan Corey wrote:
 So it does need a different driver, it's not just a matter of tweaking
 a device ID somewhere?
 Looking closer, it seems to be a run(4) variant.
 At least the vendor driver groups it with other run(4) devices.
 
 That doesn't mean it will work without modifications, though.
 It seems to need a different firmware at least. Whether or not
 it is backwards compatible to older devices is hard to tell
 without spending a lot of time digging around in the vendor
 sources... But there are other run devices we don't yet support
 without code changes:
 http://marc.info/?l=openbsd-techm=138903287819764w=2h
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Someone running OpenBSD (no amd64 or i386) in qemu?

2014-07-05 Thread Juan Francisco Cantero Hurtado
Hi, I need to run OpenBSD in qemu. I'm interested in any architecture
except amd64/i386/vax/sparc32/motorolas.

Someone is running OpenBSD in qemu these days? Any guide/tutorial?

PS: Get a real machine is not a valid answer :)

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: py-pip for python3 on OpenBSD 5.5

2014-07-08 Thread Juan Francisco Cantero Hurtado
On Tue, Jul 08, 2014 at 06:30:05PM +0200, Henrik Friedrichsen wrote:
 Nevermind. This was due to a dependency that did not get installed for some
 reason..

Which dependency? if a package needs some missing dependency, we can
fix the package.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: issues with firefox

2014-07-08 Thread Juan Francisco Cantero Hurtado
On Tue, Jul 08, 2014 at 06:36:52PM +0200, misc nick wrote:
 Firefox becomes non-responsive for a small amount of time when
 viewing large (wallpaper sized) jpg images.  In OpenBSD 5.4 firefox
 would block for several seconds. In OpenBSD 5.5 the situation
 improved considerably but it's still not perfect. The lag persists
 for a very short but visible amount of time. This bug is specific
 to OpenBSD and not to the machine, as i have tested it across
 different machines. This issue does not appear with other BSDs or
 linux (without flash).

These days I'm testing two options for this:
image.mem.allow_locking_in_content_processes:false
image.mem.decodeondraw:false

Maybe these options help with your problem.

 
 Secondly, viewing html video (eg in youtube) continuously lags. The
 sound is perfect but every other video frame seems to stop for a
 second or two and then the video jumps to the correct frame. This
 makes streaming video playback virtually unwatchable. This bug is
 specific to OpenBSD again. I have tested this at different machines
 and the result are the same. Once again, this issue does not appear
 with other BSDs or linux (without flash).

Chrome and any webkit-gtk based browser don't have that problem.

I usually use firefox + mplayer + 'youtube-dl -g' to see videos.

 
 Those two problems are much less obvious in OpenBSD-current's
 firefox, but, especially the second, still exist.
 
 I just wanted to report these issues and not complain. It is obvious
 that there is improvement at every new release of OpenBSD.
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



I need a shell account on one of these machines. Anyone?

2014-07-08 Thread Juan Francisco Cantero Hurtado
Hi. I'm the maintainer of Racket on OpenBSD. Racket is a general
purpose functional programming language http://racket-lang.org/ .

Recently I began to port Racket to non-x86 platforms. The process is
pretty simple when you know where the C macros are. The problem is
that Racket fails always at the same point on hppa and mips64el
(tested by jturner@).

Matthew Flatt (the main developer of Racket) is interested in to take
a look to the problem but he hasn't access to one of these machines
(and qemu doesn't work). Can someone give us a shell account on one
mips64/mips64el/hppa/sparc64/ppc/alpha machine?. The only requirement
is at least 512MB of memory.

Please contact with me off-list.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: issues with firefox

2014-07-09 Thread Juan Francisco Cantero Hurtado
On Wed, Jul 09, 2014 at 02:06:57AM +0200, Nils R wrote:
  Am 08.07.2014 20:50 schrieb Kevin Chadwick ma1l1i...@yahoo.co.uk:
  
   previously on this list Stuart Henderson contributed: 
  
 Secondly, viewing html video (eg in youtube) continuously lags. The 
 sound is perfect but every other 
 video frame seems to stop for a second or two and then the video 
 jumps to the correct frame. This 
 makes streaming video playback virtually unwatchable. This bug is 
 specific to OpenBSD again. I have 
 tested this at different machines and the result are the same. Once 
 again, this issue does not appear with 
 other BSDs or linux (without flash).  

Any improvement with GENERIC rather than GENERIC.MP? 
  
   I'm guessing this is due to the new KMS 3d support not being as fast 
   right now but much better than you had before. 
  
   Playing video in browsers and even displaying pictures is a 
   surprisingly resource hungry task with umpteen potential rules working 
   out what shape and where everything should be and unfortunately more 
   effort has been spent on javascript performance than rendering. 
  
   Before I upgraded one of my tv systems hardware (running Linux) some 
   videos were unplayable on say smplayer or any gui player but worked 
   fine with mplayer. There are plugins to use mplayer with firefox but 
   the best performance will be downloading the video using youtube_dl and 
   then using mplayer to play it. This method would also get around the 
   Linux is a fourth class citizen by adobe for flash video playback too, 
   though I'm not sure if that can be done in a streaming fashion without 
   waiting for the download to finish. 
  
 
  I wrote a small script which uses youtube-dl to download the Video and 
  then, after a 5 sec. Delay, starts to play the partial file. You can find 
  it at
 
  https://bitbucket.org/drm00/bin/src/1197e82c8e792e593efaaef159a34290a60fe959/dwm-helper/watch_online_videos.sh?at=default
 

You don't need to use a partial file to see the videos. I use this command:

mplayer $(youtube-dl -g -f18 --prefer-insecure 'the youtube url')


-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: issues with firefox

2014-07-13 Thread Juan Francisco Cantero Hurtado
On Sat, Jul 12, 2014 at 12:46:43PM -0700, Chris Cappuccio wrote:
 Kevin Chadwick [ma1l1i...@yahoo.co.uk] wrote:
  
  I'm guessing this is due to the new KMS 3d support not being as fast
  right now but much better than you had before.
  
 
 It also affects Thunderbird. Here's my synopsis of Mark Kettenis's
 analysis:
 
 Firefox uses an old version of cairo. This cairo library uses XGetImage
 to get the image copied back to a ZPixmap in user space. It copies with
 a 4k buffer size (the default). So your extremely large, uncompressed image
 gets copied in 4k chunks with constant context switches. 
 
 Not only do the subsystems thrash themselves, but the server sends the
 image in non-blocking mode, and the socket buffer is full, it fails with
 EAGAIN and discards the data already sent by copying the remaining data to 
 the start of the buffer, waits for the socket to drain and tries again when
 the socket is ready.
 
 You can find Mark's buffer size improvement here:
 http://comments.gmane.org/gmane.os.openbsd.cvs/128950
 http://lists.x.org/archives/xorg-devel/2014-March/041543.html
 
 This makes the problem less apparent.
 
 Some in the ports tree tried using a newer cairo and found a whole new
 set of problems (apparently firefox depends on old cairo and/or local
 modifications to it)
 
 Why Firefox needs a ZPixmap of the image displayed, that is, the entire
 fully uncompressed image copied back to userland in 4k (or 64k) chunks,
 that's totally beyond me, by itself. Why the X server does it in such
 a poor way, beyond me. It's crazyland!!!

The new gtk3 flavor doesn't use the internal version of cairo.

 
  Playing video in browsers and even displaying pictures is a
  surprisingly resource hungry task with umpteen potential rules working
  out what shape and where everything should be and unfortunately more
  effort has been spent on javascript performance than rendering.
 
 These issues are not directly related (and largely solved when the X
 clients use the right techniques, which sometimes vary between platforms
 and display drivers)
 
 Chris
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: issues with firefox

2014-07-14 Thread Juan Francisco Cantero Hurtado
On Sun, Jul 13, 2014 at 05:47:23PM -0700, Chris Cappuccio wrote:
 Juan Francisco Cantero Hurtado [i...@juanfra.info] wrote:
   
   Why Firefox needs a ZPixmap of the image displayed, that is, the entire
   fully uncompressed image copied back to userland in 4k (or 64k) chunks,
   that's totally beyond me, by itself. Why the X server does it in such
   a poor way, beyond me. It's crazyland!!!
  
  The new gtk3 flavor doesn't use the internal version of cairo.
  
 
 So firefox under -current should use some better technique of needlessly
 sharing the image with userland, like XShmGetImage? :)
 
 Is there any chance that Thunderbird will use gtk3 and external cairo at
 some point?

Apparently, firefox with gtk3 and system cairo has problems on OpenBSD
but works fine for me. IIRC, the next ESR version of thunderbird will
come out with gtk3 support.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: tor status

2014-08-15 Thread Juan Francisco Cantero Hurtado
On Fri, Aug 15, 2014 at 06:19:34AM +0200, Zoran Kolic wrote:
 I see no recent posts on the subject. Repository
 about 2 weeks ago shows a version 0.2.4.22p0. At
 the moment I cannot find manual for openbsd, on the
 net.
 
 What is prefered way to use it right now? On other
 systems it works fine through torsocks. And the
 user and group _tor are made for the purpose.
 
 If I asked something pretty obvious, I'd like to
 learn links for up to date articles.

You can update tor to the last version from ports. The package is not
available yet.

torsocks or applications with socks5 support work fine on OpenBSD. The
_tor user is only used for the server.

Cheers.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: xombrero crashes with 'Bus error'

2014-10-01 Thread Juan Francisco Cantero Hurtado
 # keybinding  = hinting_newtab,comma
 # keybinding  = userstyle,s
 # keybinding  = userstyle_global,S
 # keybinding  = goback,BackSpace
 # keybinding  = goback,!M1-Left
 # keybinding  = goforward,!S-BackSpace
 # keybinding  = goforward,!M1-Right
 # keybinding  = reload,!F5
 # keybinding  = reload,!C-r
 # keybinding  = reload,!C-l
 # keybinding  = favorites,!M1-f
 # keybinding  = scrolldown,j
 # keybinding  = scrolldown,Down
 # keybinding  = scrollup,k
 # keybinding  = scrollup,Up
 # keybinding  = scrollbottom,G
 # keybinding  = scrollbottom,End
 # keybinding  = scrolltop,Home
 # keybinding  = scrollpagedown,space
 # keybinding  = scrollpagedown,!C-f
 # keybinding  = scrollpagedown,Page_Down
 # keybinding  = scrollhalfdown,!C-d
 # keybinding  = scrollpageup,Page_Up
 # keybinding  = scrollpageup,!C-b
 # keybinding  = scrollhalfup,!C-u
 # keybinding  = scrollright,l
 # keybinding  = scrollright,Right
 # keybinding  = scrollfarright,dollar
 # keybinding  = scrollleft,h
 # keybinding  = scrollleft,Left
 # keybinding  = scrollfarleft,0
 # keybinding  = statustoggle,!C-n
 # keybinding  = stop,!S-F5
 # keybinding  = tabnew,!C-t
 # keybinding  = tabclose,!C-w
 # keybinding  = tabundoclose,U
 # keybinding  = tabnext 1,!C-1
 # keybinding  = tabnext 2,!C-2
 # keybinding  = tabnext 3,!C-3
 # keybinding  = tabnext 4,!C-4
 # keybinding  = tabnext 5,!C-5
 # keybinding  = tabnext 6,!C-6
 # keybinding  = tabnext 7,!C-7
 # keybinding  = tabnext 8,!C-8
 # keybinding  = tabnext 9,!C-9
 # keybinding  = tabfirst,!C-less
 # keybinding  = tablast,!C-greater
 # keybinding  = tabprevious,!C-Left
 # keybinding  = tabnext,!C-Right
 # keybinding  = focusout,!C-minus
 # keybinding  = focusin,!C-equal
 # keybinding  = focusin,!C-plus
 # keybinding  = focusreset,!C-0
 # keybinding  = editelement,!C-i
 # keybinding  = passthrough,!C-z
 # keybinding  = :open ,!F9
 # keybinding  = :open uri,!F10
 # keybinding  = :tabnew ,!F11
 # keybinding  = :tabnew uri,!F12
 
 # parse the contents of another configuration file
 # include_config  = ~/.xombrero_alternate.conf
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: apm not having any effect on real watt usage

2014-10-12 Thread Juan Francisco Cantero Hurtado
 at vga1 mux 1: console (std, vt100 emulation)
 wsdisplay0: screen 1-5 added (std, vt100 emulation)
 Intel 6 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured
 ehci0 at pci0 dev 26 function 0 Intel 6 Series USB rev 0x05: apic 2 int 16
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 azalia0 at pci0 dev 27 function 0 Intel 6 Series HD Audio rev 0x05: msi
 azalia0: codecs: Realtek/0x0892, Intel/0x2805, using Realtek/0x0892
 audio0 at azalia0
 ppb0 at pci0 dev 28 function 0 Intel 6 Series PCIE rev 0xb5: msi
 pci1 at ppb0 bus 1
 ppb1 at pci0 dev 28 function 4 Intel 82801BA Hub-to-PCI rev 0xb5: msi
 pci2 at ppb1 bus 2
 ppb2 at pci2 dev 0 function 0 ASMedia ASM1083/1085 PCIE-PCI rev 0x03
 pci3 at ppb2 bus 3
 ppb3 at pci0 dev 28 function 5 Intel 6 Series PCIE rev 0xb5: msi
 pci4 at ppb3 bus 4
 re0 at pci4 dev 0 function 0 Realtek 8168 rev 0x06: RTL8168E/8111E-VL 
 (0x2c80), msi, address 00:25:22:dc:37:c9
 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
 ppb4 at pci0 dev 28 function 6 Intel 6 Series PCIE rev 0xb5: msi
 pci5 at ppb4 bus 5
 Etron xHCI rev 0x01 at pci5 dev 0 function 0 not configured
 ehci1 at pci0 dev 29 function 0 Intel 6 Series USB rev 0x05: apic 2 int 23
 usb1 at ehci1: USB revision 2.0
 uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
 pcib0 at pci0 dev 31 function 0 Intel Z68 LPC rev 0x05
 ahci0 at pci0 dev 31 function 2 Intel 6 Series AHCI rev 0x05: msi, AHCI 1.3
 scsibus1 at ahci0: 32 targets
 sd0 at scsibus1 targ 0 lun 0: ATA, Samsung SSD 840, DXT0 SCSI3 0/direct 
 fixed naa.500253855016cf87
 sd0: 114473MB, 512 bytes/sector, 234441648 sectors, thin
 sd1 at scsibus1 targ 2 lun 0: ATA, WDC WD10EAVS-00D, 01.0 SCSI3 0/direct 
 fixed naa.50014ee1ac537de0
 sd1: 953869MB, 512 bytes/sector, 1953525168 sectors
 cd0 at scsibus1 targ 3 lun 0: TSSTcorp, CDDVDW SH-222AB, SB00 ATAPI 5/cdrom 
 removable
 ichiic0 at pci0 dev 31 function 3 Intel 6 Series SMBus rev 0x05: apic 2 int 
 18
 iic0 at ichiic0
 spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600
 spdmem1 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600
 isa0 at pcib0
 isadma0 at isa0
 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 pckbc0 at isa0 port 0x60/5
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 pcppi0 at isa0 port 0x61
 spkr0 at pcppi0
 wbsio0 at isa0 port 0x2e/2: NCT6776F rev 0x33
 lm1 at wbsio0 port 0x290/8: NCT6776F
 uhub2 at uhub0 port 1 Intel Rate Matching Hub rev 2.00/0.00 addr 2
 uhub3 at uhub1 port 1 Intel Rate Matching Hub rev 2.00/0.00 addr 2
 uhidev0 at uhub3 port 2 configuration 1 interface 0 vendor 0x173d product 
 0x0005 rev 1.10/1.50 addr 3
 uhidev0: iclass 3/1
 ukbd0 at uhidev0: 8 variable keys, 6 key codes
 wskbd1 at ukbd0 mux 1
 wskbd1: connecting to wsdisplay0
 uhidev1 at uhub3 port 2 configuration 1 interface 1 vendor 0x173d product 
 0x0005 rev 1.10/1.50 addr 3
 uhidev1: iclass 3/0, 3 report ids
 uhid0 at uhidev1 reportid 1: input=3, output=0, feature=0
 uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
 uhid2 at uhidev1 reportid 3: input=2, output=0, feature=0
 uvideo0 at uhub3 port 5 configuration 1 interface 0 Logitech product 0x0825 
 rev 2.00/0.10 addr 4
 video0 at uvideo0
 uaudio0 at uhub3 port 5 configuration 1 interface 2 Logitech product 0x0825 
 rev 2.00/0.10 addr 4
 uaudio0: audio descriptors make no sense, error=4
 ugen0 at uhub3 port 5 configuration 1 Logitech product 0x0825 rev 2.00/0.10 
 addr 4
 uhidev2 at uhub3 port 6 configuration 1 interface 0 Microsoft Microsoft 
 5-Button Mouse with IntelliEye(TM) rev 1.10/3.00 addr 5
 uhidev2: iclass 3/1
 ums0 at uhidev2: 5 buttons, Z dir
 wsmouse0 at ums0 mux 0
 vscsi0 at root
 scsibus2 at vscsi0: 256 targets
 softraid0 at root
 scsibus3 at softraid0: 256 targets
 root on sd1a (84af1cd71364ab45.a) swap on sd1b dump on sd1b
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: New power management

2014-11-13 Thread Juan Francisco Cantero Hurtado
On Thu, Nov 13, 2014 at 12:35:43AM -0800, Nathan Van Ymeren wrote:
 All right, thanks.
 
 Any clue regarding hw.setperf and hw.perfpolicy?  I find that using the -C/-A
 flag causes really sluggish behaviour (noticeable lags when opening new tab
 in browser, for example).
 
 I'd like to avoid that if possible, without sacrificing battery life.

Build a kernel from CVS, reboot and try again. tedu@ updated the
scheduler yesterday.

 
 On Wed, Nov 12, 2014 at 11:35 PM, Peter Hessler phess...@theapt.org wrote:
  apmd_flags='-C' still works.  You can also use -A, since they now behave
  the same.
 
 
  On 2014 Nov 12 (Wed) at 23:28:46 -0800 (-0800), Nathan Van Ymeren wrote:
  :Hello,
  :
  :I'm running -current on a thinkpad x220 tablet, with an intel i7.
  :
  :I had been running with apmd_flags=-C but I see that that has been
  :removed.
  :
  :1)  For best battery life, should I just go apmd_flags= ?
  :
  :2)  I've seen some mailing list messages about hw.perfpolicy=auto
  :and hw.setperf=-1 but the man page doesn't explain what these actually
  :do.  Do they conflict?  Should they be used instead of apmd flags?
  :
  :Thanks
  :
  :N
  :
 
  --
  It is only people of small moral stature who have to stand on their
  dignity.
 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



  1   2   >