06-13-2011
expanding RAM
our sparc server has only 1Gb RAM. Since RAM is not very expensive anymore, it seems like a good idea to upgrade it.
will it make server (and database on it) faster?
I hope it would less 'abuse' hard drive..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I have just download a .tar.gz
when I run:
$tar x *.tar.gz
or even
$tar z *.tar.gz
this is the error I get
tar: can't open /dev/sa0 : Device not configured
How do I reconfigure the device so that it expands the file in it's current location?
Thanks so much for your help! (4 Replies)
Discussion started by: TAT2ME74
4 Replies
2. Shell Programming and Scripting
I have a question about expanding shell variables. Given the following piece of script:
a="Some text"
b="Other text"
for i in a b
do
string1=$i
echo $string1 --> returns 'a'
string2=EXPRESSION_WITH_$i
echo $string2 --> returns 'Some text'
done
... (2 Replies)
Discussion started by: lonar
2 Replies
3. AIX
Hi,
I have created the lun of 15gb and assigned to aix,but now I want to expand the size of lun 15gb to 30gb,
I am having following queries.
1)wheather i have to umount that partition on aix side before increasing the size of lun on storage side or directly I can increase directly size... (2 Replies)
Discussion started by: manoj.solaris
2 Replies
4. Red Hat
Hi,
On server 64bit Hw Arch , Linux 5.0(32bit) is installed it is showing only 3gb of ram though physical is 16gb
can u give me idea why? (4 Replies)
Discussion started by: manoj.solaris
4 Replies
5. Shell Programming and Scripting
Hi !
I am making my first steps to make a script. Therefore i try to make a scp command more easier. Given is the following alias:
14='admin@x-abcd-def.xyz
Now i want to let the script read three var's from the console to use them in the script and then build the scp string.
echo... (7 Replies)
Discussion started by: locutus01
7 Replies
6. Linux
Hi all
I am testing backupPC as a backup solution for machines, as far as i knew, backuppc cannot combine more than storage from different slices so it have to be in one slice my question is, what is the easy way to offer a virtual logical drive expanded/expandable to backuppc, i mean i want to... (1 Reply)
Discussion started by: XP_2600
1 Replies
7. Shell Programming and Scripting
Hi Experts,
I'm trying to match and perform the substitution (below) but failed.
<File1>
Attributes = "SampleAttributes"
Attributes1 = "SampleAttributes1"
Command:
grep Attributes File1 | sed 's|Attributes\s=\s\"\"|Attributes = \"ReplaceAttributes\"|'
Any ideas? :( (2 Replies)
Discussion started by: antderu
2 Replies
8. Shell Programming and Scripting
Heyas
I'm trying to give some information on used variables.
While the first two work fine, the ones starting with a glob (is that the proper term?) fail.
echo ${!TUI_*} ${!RET_*} ${!*_CLI} ${!*\_GUI}
bash: ${!*_CLI}: bad substitution
Same with @ or have them escaped.
I found no... (2 Replies)
Discussion started by: sea
2 Replies
9. Shell Programming and Scripting
Hi, I want to long list files within a file.tar.Z/file.tar.gz file. I tried these:
I'm working on HP UX 11iV3 OS
tar -tvzf file.tar.gz -->not working as 'z' is not supported
gunzip -c file.tar.gz | tar tvf - -->does this unizip the tar file? i don't want it to be unzipped.
... (1 Reply)
Discussion started by: sam_bd
1 Replies
10. UNIX for Beginners Questions & Answers
I have also some difficulty calling sed to change a word in a file.
sed -i 's/docTitl/Outline ${docTitl}/g' $ofln
Moved to new thread, since it is a different question (3 Replies)
Discussion started by: Danette
3 Replies
LEARN ABOUT SUSE
exsprite
exsprite(3alleg4) Allegro manual exsprite(3alleg4)
NAME
exsprite - Datafiles access and sprite animation. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
Example exsprite
DESCRIPTION
This example demonstrates how to use datafiles, various sprite drawing routines and flicker-free animation.
Why is the animate() routine coded in that way? As you probably know, VIDEO RAM is much slower than "normal" RAM, so it's advisable to
reduce VRAM blits to a minimum. Drawing sprite on the screen (meaning in VRAM) and then clearing a background for it is not very fast.
This example uses a different method which is much faster, but require a bit more memory.
First the buffer is cleared (it's a normal BITMAP), then the sprite is drawn on it, and when the drawing is finished this buffer is copied
directly to the screen. So the end result is that there is a single VRAM blit instead of blitting/clearing the background and drawing a
sprite on it. It's a good method even when you have to restore the background. And of course, it completely removes any flickering effect.
When one uses a big (ie. 800x600 background) and draws something on it, it's wise to use a copy of background somewhere in memory and
restore background using this "virtual background". When blitting from VRAM in SVGA modes, it's probably, that drawing routines have to
switch banks on video card. I think, I don't have to remind how slow is it.
Note that on modern systems, the above isn't true anymore, and you usually get the best performance by caching all your animations in video
ram and doing only VRAM->VRAM blits, so there is no more RAM->VRAM transfer at all anymore. And usually, such transfers can run in parallel
on the graphics card's processor as well, costing virtually no main cpu time at all. See the exaccel example for an example of this.
SEE ALSO
BITMAP(3alleg4), DATAFILE(3alleg4), END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), LOCK_VARIABLE(3alleg4),
SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), cir-
cle(3alleg4), clear_bitmap(3alleg4), clear_keybuf(3alleg4), create_bitmap(3alleg4), destroy_bitmap(3alleg4), draw_sprite(3alleg4),
draw_sprite_h_flip(3alleg4), draw_sprite_v_flip(3alleg4), draw_sprite_vh_flip(3alleg4), fixed(3alleg4), font(3alleg4), hline(3alleg4),
install_int_ex(3alleg4), install_keyboard(3alleg4), install_sound(3alleg4), install_timer(3alleg4), itofix(3alleg4), key(3alleg4), key-
pressed(3alleg4), load_datafile(3alleg4), makecol(3alleg4), palette_color(3alleg4), pivot_sprite(3alleg4), pivot_sprite_v_flip(3alleg4),
play_sample(3alleg4), rectfill(3alleg4), replace_filename(3alleg4), rest(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_pal-
ette(3alleg4), text_height(3alleg4), textout_centre_ex(3alleg4), unload_datafile(3alleg4), vsync(3alleg4)
Allegro version 4.4.2 exsprite(3alleg4)