Re: Update.1 690 very slow on B2-7 XO

2008-02-24 Thread Zvi Devir
The main problem with B2 is memory, not CPU speed. You can speed up your 
B2 machine by using the swap as the missing memory:
* Plug a USB2 storage device
* mkswap the device (mkswap /dev/sda1)
* Activate the swap (swapon /dev/sda1)
Technically, you can update fstab for automatic swap. Practically it's 
more complicated, and failed to automate the swap this way.

Cheers,
   Zvi

Jim Gettys wrote:
 On Wed, 2008-02-06 at 10:42 -0500, Stephen Bannasch wrote:
 We'ved ordered 2 of the G1G1 XOs for development at Concord
 Consortium but since they haven't arrived yet I installed Update.1
 690 on one of our B2-7 XOs.

 The install completed and the system works but it is extremely slow
 -- many minutes to start applications or switch contexts (presumably
 because it only has 128MB of ram).

 Questions:

 * Is there anything we can do to speed up the B2-7 XO?
 No, we do not plan to support the B2's further. Every day, more MP
 systems get built than the sum of developer prototypes; it just doesn't
 make sense. Some things will eventually help B2's but we can't afford
 the testing time, so I expect things will stop working.

 I'm suprised you were able to install 690 on a B2 in the first place.
 * Are there any older services or configurations which need to be
 deleted or modified?
 * Is it possible to add more RAM?
 No.
 I did receive the G1G1 XO I ordered personally and both Eliza (9-yr
 old daughter) and I are very impressed. I'm looking forward to
 digging into the system.
 Glad you like it.
 - Jim


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Oprofile, swap

2007-12-30 Thread Zvi Devir





I played a bit with Psycho a few months ago, trying to speed up my B2
machine. I was not able to get a a measurable speedup, so I abandoned
my testings.

   Zvi

Ivan Krstić wrote:
On Dec 18, 2007, at 12:27 PM, Jameson Chema Quinn
wrote:
  Has anyone looked at Psyco on the XO?
  
  Psyco improves performance at the cost of memory. On a memory- 
constrained machine, it's a tradeoff that can only be made in laser- 
focused, specific cases. We have not done the work -- partly for lack 
of time, partly for lack of sufficiently good tools -- to determine 
those foci.
  
--
Ivan Krstić [EMAIL PROTECTED]
| http://radian.org
  
___
Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Increasing performance by tuning swappiness

2007-09-25 Thread Zvi Devir
Actually, swap should have been a great solution for B2 machines with a 
modern (i.e., 500) image. Theoretically, the additional swap memory 
provided by an external usb2 storage device should allow a smoother 
execution of memory hungry applications.
In practice, the additional swap did not help, probably because the 
memory watchdog does not take into an account the possible additional 
swap. I'll check if changing the swappiness helps in this situation.

  - Zvi

Chris Ball wrote:
 Hi,
 
 Any thoughts on this subject?
 
 Yes:  we don't use swap.
 
 - Chris.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: eBook Reader user interface

2007-06-05 Thread Zvi Devir

I have been collecting a few (more than a few) usability bugs and UI 
suggestions, which will hopefully be compiled to a list next month.

In the meanwhile, I would like to share a couple of ideas regarding the 
mapping of the gamepad keys [which I hope won't state the obvious too much].

Currently, the UP/DOWN/LEFT/RIGHT keys have a fixed functionality 
regardless of the screen orientation. This isn't a correct logic, as the 
expected functionality changes according to the current orientation. I 
guess the easiest way to implement this kind of behavior would be using 
a smart key mapping mechanism in X.
Another thought -- the current input method treats those keys as 
direction keys. However, a better input method may be emulating the 
functionality of the mouse (touch pad) using the gamepad keys. In tablet 
mode this can really improve the user experience.

Just my $0.04.
Zvi


Don Hopkins wrote:
 Goal for improving the eBook reader user interface:
 
   I've been doing some exploratory programming with GTK and Sugar,
   trying to improve the user interface of the eBook reader, and make
   it useable in book mode with the gamepad.
 
   + Support the game keypads in eBook mode. 
 
 + Low level game keypad support
 
   Need to remap low level keyboard scan codes to Linux keyboard codes. 
 
   The setolpckeys.c program remaps the keys and gamepad buttons.
 
   Currently it maps both gamepads to the numeric keypad keys (KEY_KP8, 
 etc),
   which the X server and GDK translates to directional keys (GDK_Up, etc).
 
   I tried to map them to buttons (BTN_A, etc), but the X server seems 
   to ignore keycodes in that range. 
 
   The xorg.conf file has a keycode mask that looked like it might help, 
   but I couldn't get it to work. 
 
   Need to have unique keycodes reported for each of the two gamepads, 
   which are not the same as any keyboard keys, without any predefined 
 meanings
   like arrow keys have. 
 
   Need to define special purpose keycodes just for the OLPC gamepad,
   instead of trying to reuse existing but not appropriate keycodes. 
 
   What is the process for defining new keycodes in linux/input.h?
 
   Here's my strawman proposal for some new keycodes. 
 
 Use keys (KEY_*) instead of buttons (BTN_*), since they
 seem to work better.
 
 The 0x1b* range seems to be unused in linux/input.h, 
 and it's between other groups of keycodes, so I'll
 propose using that range for the OLPC. 
 
 The UP/DOWN/LEFT/RIGHT keys correspond to the directional
 keypad.
 
 #define KEY_XO_GAMEPAD_UP  0x1b0
 #define KEY_XO_GAMEPAD_DOWN0x1b1
 #define KEY_XO_GAMEPAD_LEFT0x1b2
 #define KEY_XO_GAMEPAD_RIGHT   0x1b3
 
 The NORTH/SOUTH/EAST/WEST keys correspond to the other
 buttons. Those names are agnostic to the button labels,
 which may change from the current Playstation buttons
 (X/O/Triangle/Square). Can anyone suggest better names for
 the four buttons on the right?
 
 #define KEY_XO_GAMEPAD_NORTH   0x1b4
 #define KEY_XO_GAMEPAD_SOUTH   0x1b5
 #define KEY_XO_GAMEPAD_EAST0x1b6
 #define KEY_XO_GAMEPAD_WEST0x1b7
 
 While we're at it, we could define keycodes for the other
 OLPC buttons and switches on the screen. I think there are
 some other sensor switches that could generate keycodes,
 like opening the screen, rotating it around, and putting it
 into book mode, so I will make some guesses at names for
 them, just to get the discussion rolling. 
 
 #define KEY_XO_SCREEN_ROTATE   0x1b8
 #define KEY_XO_SCREEN_POWER0x1b9
 #define KEY_XO_SCREEN_OPEN 0x1ba
 #define KEY_XO_SCREEN_CLOSE0x1bb
 #define KEY_XO_SCREEN_IN   0x1bc
 #define KEY_XO_SCREEN_OUT  0x1bd
 
 Is there an exhaustive list of all buttons and switches and
 events on the OLPC? Are any more planned? Which ones should
 be assigned keycodes?
 
   Rewrote setolpckeys.c code in Python (just uses ioctl, but needs to 
 know keycodes).
   Writing utilities like that in Python instead of C makes it easier to 
   reconfigure the keys on the OLPC without a C compiler. 
 


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel