Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 07:35
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Puppylinux for the OLPC laptops: XOpup
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 14 of 21 [306 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14, 15, 16, ..., 19, 20, 21 Next
Author Message
rrolsbe

Joined: 15 Nov 2006
Posts: 183

PostPosted: Mon 13 Feb 2012, 20:30    Post subject: Re: Body of post not showing up?
Subject description: Guess it has been a long time since I have posted here....
 

Back to top
View user's profile Send private message 
James C


Joined: 26 Mar 2009
Posts: 5932
Location: Kentucky

PostPosted: Mon 13 Feb 2012, 21:04    Post subject: Re: Crazy thought reduce /tmp and use a compressed zram swap
Subject description: Possibly increase swap performance by NOT using a swap file on SDHC card
 

rrolsbe wrote:
Since the OLPC booting Puppy Linux uses half of the available SDRAM for the /tmp RAM file system, I was wondering what performance would be like if /tmp was reduced and a zram compressed swap were used in the freed up ram? Since the OLPC only has 256Mb of RAM, is it necessary to use half of the RAM for /tmp (pros/cons)? The xopup-XXX.sfs file is being loaded into RAM when Puppy boots on the OLPC, correct?

http://en.gentoo-wiki.com/wiki/Zram_disks

Anyone tried this or something similar?

Regards, Ron



Fixed the url so post would show.
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1791

PostPosted: Tue 14 Feb 2012, 02:59    Post subject: Re: Crazy thought reduce /tmp and use a compressed zram swap
Subject description: Possibly increase swap performance by NOT using a swap file on SDHC card
 

rrolsbe wrote:
Since the OLPC booting Puppy Linux uses half of the available SDRAM for the /tmp RAM file system, I was wondering what performance would be like if /tmp was reduced and a zram compressed swap were used in the freed up ram? Since the OLPC only has 256Mb of RAM, is it necessary to use half of the RAM for /tmp (pros/cons)? The xopup-XXX.sfs file is being loaded into RAM when Puppy boots on the OLPC, correct?

http://en.gentoo-wiki.com/wiki/Zram_disks

Anyone tried this or something similar?

Regards, Ron

Hi Ron,
you are touching on several issues.
I believe that puppy takes all the available RAM as /tmpfs by default since its running in RAM.
You can stop loading the main sfs in the RAM by adding "pfix=nocopy" to line 116 of /boot/olpc.fth like this
Code:
   " console=ttyS0,115200 console=tty0 fbcon=font:SUN12x22 ${PD} pfix=nocopy" expand$ to boot-file

Makes the boot a bit faster and program opening a bit slower.

Regarding compcache (zram) requires a new kernel, which I had tried some time ago without obvious benefits or issues over standard swap. It has the standard Space-time tradeoff, so "more" RAM but "slower" RAM. The fact that the XO-1 has a 433-500MHz CPU and DDR1(133/166MHz) RAM, makes the tradeoff even worse.
Given that neither OLPC nor Puppy is using it (eg not tested at all for this setting), I thought is better to pass.
Standard swap on a good SD card I believe is better. Though finding a good SDcard may not be that easy. This article has valuable relevant info and a big list of cards and their characteristics at the end.
It is even better if you have the OS and swap in different devices (eg a USB stick and an SDcard) because you can have more simultaneous read/writes which is the major speed-limiting factor with these devices.
Here, among other things, you can find a HowTo test the performance of your card(s) and the app to do it.

James C wrote:
Fixed the url so post would show.

Thanks

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1791

PostPosted: Sat 18 Feb 2012, 09:04    Post subject: XO1.5 temperature monitor  

If you are of the rare few with a wild XO-1.5, here is a tray temperature monitor to check the VIA cpu temperature.
Is based on 01micko's tempicon-0.06 but is lm-sensors independent.

Will NOT work on the XO-1 (unless you want to physically modify registers on the CPU chip Shocked )

tempicon_XO-0.06.pet
Description  temperature tray monitor for the XO-1.5 only
pet

 Download 
Filename  tempicon_XO-0.06.pet 
Filesize  6.94 KB 
Downloaded  438 Time(s) 

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
rrolsbe

Joined: 15 Nov 2006
Posts: 183

PostPosted: Mon 20 Feb 2012, 16:14    Post subject: OLPC questions
Subject description: Regarding SWAP and application load times
 

Mavothal

Thanks for the reply to my previous post regarding /tmp and Zram.

I haven't installed and tried the latest 2.2 version of Puppy Linux for the OLPC version 1.0 hardware.

The following is my understanding of how Puppy Linux ,by default, runs on the OLPC 1.0 platform:

1/2 of the RAM is allocated to the /tmp RAM file system.
Since /tmp is NOT used to temporarily store cached flash writes (as it normally is), it could be reduces in size by modifying the initrd.img file?

The pup.sfs file is loaded into RAM (not in /tmp?) which should make application load quicker but takes up limited RAM space. The boot options could be modified (as per your last post) to NOT load the .sfs file but this might make the applications load slower.

The pupsave.2fs/3fs file stores all the users installed applications and configurations. This mountable file system is not compressed and a binary such as Seamonkey must be read from the flash (failrly slow). A remaster could be performed to install Seamonkey in the .sfs file which might load quicker from the sfs file if it were loaded into RAM at boot? not loaded into RAM (ie.. sfs loop mounted Read-Only using the .sfs. file on the SDCH flash card)?

The point of all this rambling is I guess considerable testing would be required to determine my best performance options for my particular usage model. Seamonkey currently loads slow from my loop mounted pupsave.2fs file stored on the boot SDHC flash device; likewise, very little RAM is available after boot requiring a mandatory SWAP file (maybe if the sfs file weren't loaded into RAM and/or /tmp used must less RAM the system might perform better?)

IE.....
1.) How big of SWAP file to use if any.
2.) If it makes sense to reduce the /tmp file size
3.) Binary load times depending where/how they are loaded
RAM loaded sfs/remastered sfs file loop mounted from RAM/Flash device

Before I start testing my different options, Am I correctly understanding how the default operational configuration is working and what modification could be made to improve binary load time?

Thanks Much
Regards, Ron
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1791

PostPosted: Mon 20 Feb 2012, 18:26    Post subject: Re: OLPC questions
Subject description: Regarding SWAP and application load times
 

rrolsbe wrote:


IE.....
1.) How big of SWAP file to use if any.
2.) If it makes sense to reduce the /tmp file size
3.) Binary load times depending where/how they are loaded
RAM loaded sfs/remastered sfs file loop mounted from RAM/Flash device

Before I start testing my different options, Am I correctly understanding how the default operational configuration is working and what modification could be made to improve binary load time?

Thanks Much
Regards, Ron


Ron
I run the XO-1 with 256MB swap the last 4 years and never run out of RAM, so I would think 256MB swap is OK.
I do not think will make a difference if you reduce tmpfs size. If it did would be probably for the worse. But frankly I never tried it
I find that there is not big difference, if any, between having the binaries on the sfS of savefile, because on the sfs they are compressed, so you read faster but you need some time to decompress them.

If you want to test you can try a Racy build that I made some time ago which has seamonkey in the main sfs. Takes quite some time to load...

BTW seamonkey is probably one of the slowest to load. Unless you want the mail and html editor all in one, i find it fairly poor. Google-chrome or Midori are better options

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1791

PostPosted: Thu 08 Mar 2012, 13:41    Post subject: sisusbvga  

Here is a pet that hopefully fixes the connection of an external monitor/projector to the XO via a usb2vga adaptor. It also provides a desktop application that can switch to the external monitor without the need to reboot.
Unfortunately, I have no way to test it since I do not have such an adaptor Shocked
So if you use it please report either way.
sisusb.pet
Description  usb2vga for the XO (do not use with other puppies)
pet

 Download 
Filename  sisusb.pet 
Filesize  7.3 KB 
Downloaded  713 Time(s) 

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy

Last edited by mavrothal on Tue 27 Mar 2012, 06:48; edited 1 time in total
Back to top
View user's profile Send private message 
jakfish

Joined: 18 Jul 2008
Posts: 757

PostPosted: Fri 23 Mar 2012, 01:47    Post subject:  

Hi, mavrothal,

Many thanks for your hard work and a great new JWM. Running it on a Lenovo S10-3t touchscreen netbook and 5.3 dpup-exprimo with the 3.1* kernel, frugal install on 8GB usb stick.

The larger title buttons are great. I'm still having trouble with screen rotation, however. I get the full rotation (something that didn't happen with previous JWMs), but the task bar remains in the middle of the screen (as though the screen were still in landscape mode).

I can not replicate this problem in IceWM,which rotates fine, but without the great new titlebar.

Any workarounds to this?

Many thanks,
Jake
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1791

PostPosted: Fri 23 Mar 2012, 03:13    Post subject:  

jakfish wrote:

The larger title buttons are great. I'm still having trouble with screen rotation, however. I get the full rotation (something that didn't happen with previous JWMs), but the task bar remains in the middle of the screen (as though the screen were still in landscape mode).


This sounds like an older jwm version. What "jwm -version" reports?

The jwm-2.1.1_2.pet also contains /usr/bin/olpc-rotate and /usr/sbin/olpc-rotate_shell. They should not affect non-XO buids but remove them just in case.
Also make sure that you to not have any other jwm executable but the one in /usr/bin.
Finally run in terminal (or from your rotation script)
Code:
/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin
rox -p /root/Choices/ROX-Filer/PuppyPin
and see if this fixes it.

If all fails it may have to do with something exprimo specific. You may want to recompile for exprimo (is very simple), or ask Pemasu to do it.

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
jakfish

Joined: 18 Jul 2008
Posts: 757

PostPosted: Fri 23 Mar 2012, 04:03    Post subject:  

Thank you for such a quick, helpful reply.

I did all your steps, but I'm still getting the failed transition from landscape to portrait, BUT only if the taskbar is set to auto-hide.

If it's set to "false," the rotation is fine.

A hassle, though, to have to keep resetting jwm-tray. Is there a workaround to this, or at least a piece of code that I can put in a script that will change auto-hide back and forth b/w true and false?

At this point, for simplicity, I have two desktop scripts:

xrandr -o left

and

xrandr -o normal

Any commands to add, that might change the taskbar hide/show, and I guess it would have to reset jwm as well?

Again, thank you for such great help,
Jake
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1791

PostPosted: Fri 23 Mar 2012, 05:27    Post subject:  

jakfish wrote:

A hassle, though, to have to keep resetting jwm-tray. Is there a workaround to this, or at least a piece of code that I can put in a script that will change auto-hide back and forth b/w true and false?


Try this
Code:
sed -i 's/autohide\=\"false\"/autohide\=\"true\"/' /root/.jwmrc-tray # hide
sed -i 's/autohide\=\"true\"/autohide\=\"false\"/' /root/.jwmrc-tray # show

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
jakfish

Joined: 18 Jul 2008
Posts: 757

PostPosted: Fri 23 Mar 2012, 08:04    Post subject:  

Amazing. Those two commands absolutely do the job. Landscape to portrait and back again with the taskbar exactly where it should be.

With the large titlebar buttons and now-successful screen rotation, puppy can work on an S10-3t.

Many, many thanks for your incredibly fast help,
Jake
Back to top
View user's profile Send private message 
jakfish

Joined: 18 Jul 2008
Posts: 757

PostPosted: Sat 24 Mar 2012, 03:33    Post subject:  

mavrothal, one more thing, and it's more aesthetics than anything. While the taskbar (and w/ it, access to all programs) is now properly placed, the actual desktop screen remains in landscape mode.

So a lot of the desktop icons are hidden, as is the conky that lives at the upper right corner of my landscape screen, etc.

It's not a big deal, as long as any needed program is launched *after* a change to portrait.

Do you think that's a xrandr issue or something to do w/ jwm?

Thanks again for your assistance,
Jake
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1791

PostPosted: Tue 27 Mar 2012, 06:49    Post subject: Re: sisusbvga  

mavrothal wrote:
Here is a pet that hopefully fixes the connection of an external monitor/projector to the XO via a usb2vga adaptor. It also provides a desktop application that can switch to the external monitor without the need to reboot.
Unfortunately, I have no way to test it since I do not have such an adaptor Shocked
So if you use it please report either way.


C'mon people be nice.
If anybody actually used it on an XO, please report

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1791

PostPosted: Wed 04 Apr 2012, 08:06    Post subject:  

jakfish wrote:
mavrothal, one more thing, and it's more aesthetics than anything. While the taskbar (and w/ it, access to all programs) is now properly placed, the actual desktop screen remains in landscape mode.

So a lot of the desktop icons are hidden, as is the conky that lives at the upper right corner of my landscape screen, etc.

It's not a big deal, as long as any needed program is launched *after* a change to portrait.

Do you think that's a xrandr issue or something to do w/ jwm?

Thanks again for your assistance,
Jake


Sorry Jake, somehow I missed your post. Embarassed
The fixPuppyPin command given above should fix the desktop icons and the background if you have selected the "stretched" option. Doesn't it?
I do not know about conky as I never used it. Check to see if it has any placement options.

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 14 of 21 [306 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14, 15, 16, ..., 19, 20, 21 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1153s ][ Queries: 12 (0.0096s) ][ GZIP on ]